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