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