Sapan Bhatia | 2adaaaf | 2017-04-13 19:41:53 -0700 | [diff] [blame^] | 1 | - name: "Install apt dependencies" |
David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 2 | apt: |
Sapan Bhatia | 2adaaaf | 2017-04-13 19:41:53 -0700 | [diff] [blame^] | 3 | name: "{{ item }}" |
| 4 | state: present |
| 5 | with_items: |
| 6 | - python-dev |
| 7 | - libffi-dev |
| 8 | - python-pip |
| 9 | - libssl-dev |
| 10 | - sshpass |
| 11 | |
| 12 | - name: "Install Ansible via pip" |
| 13 | pip: name=ansible version=2.2.2.0 |
| 14 | become: yes |
| 15 | |
| 16 | # - name: Ansible Repository |
| 17 | # become: yes |
| 18 | # apt_repository: |
| 19 | # repo: "{{ ansible_apt_repo | default('ppa:ansible/ansible') }}" |
| 20 | # register: result |
| 21 | # until: result | success |
| 22 | # retries: 3 |
| 23 | # delay: 10 |
| 24 | |
| 25 | # - name: Ensure Ansible |
| 26 | # become: yes |
| 27 | # apt: |
| 28 | # name=ansible=2.2.* |
| 29 | # state=present |