Skip to content

Commit

Permalink
fix: neat up the code and add a little comment
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Aug 8, 2023
1 parent feb5820 commit 228bde3
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions ansible/roles/providers/tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@
when:
- ansible_os_family == "Debian"

# solution from: https://stackoverflow.com/a/76721835
# pinning awscli==1.29.9 fails
# likely due to the pypy setup
- name: install cython for flatcar
pip:
name: "cython<3.0.0"
name: "{{ item.package }}"
executable: pip3
extra_args: "wheel"
when:
- ansible_distribution == "Flatcar"

- name: install pyyaml
pip:
name: "pyyaml==5.4.1"
executable: pip3
extra_args: "--no-build-isolation"
extra_args: "{{ item.extra }}"
with_items:
- { "package": "cython<3.0.0", "extra": "wheel" }
- { "package": "pyyaml==5.4.1", "extra": "--no-build-isolation" }
when:
- ansible_distribution == "Flatcar"

Expand Down

0 comments on commit 228bde3

Please sign in to comment.