Created
April 27, 2018 17:15
-
-
Save notmyname/59afa6c1dbcc988070e7e64715a35739 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: update pip | |
pip: | |
name: pip | |
state: latest | |
- name: install bindep | |
pip: | |
name: bindep | |
state: latest | |
- name: run bindep (debian) | |
command: bindep platform:dpkg -b | |
args: | |
chdir: /usr/local/src/swift | |
register: bindep_output | |
failed_when: ( bindep_output.rc not in [ 0, 1 ] ) | |
when: ansible_os_family == 'Debian' | |
- name: install requirements from bindep (debian) | |
apt: | |
name: "{{item}}" | |
with_items: | |
- "{{bindep_output.stdout_lines}}" | |
when: | |
- ansible_os_family == 'Debian' | |
- bindep_output.rc == 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment