Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created April 27, 2018 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notmyname/59afa6c1dbcc988070e7e64715a35739 to your computer and use it in GitHub Desktop.
Save notmyname/59afa6c1dbcc988070e7e64715a35739 to your computer and use it in GitHub Desktop.
- 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