David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 1 | - name: Ansible Repository |
| 2 | become: yes |
| 3 | apt_repository: |
David K. Bainbridge | ca68f06 | 2016-10-27 11:04:33 -0700 | [diff] [blame] | 4 | repo: "{{ ansible_apt_repo | default('ppa:ansible/ansible') }}" |
Andy Bavier | e882306 | 2017-02-24 16:34:01 -0500 | [diff] [blame] | 5 | register: result |
| 6 | until: result | success |
| 7 | retries: 3 |
| 8 | delay: 10 |
David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 9 | |
| 10 | - name: Ensure Ansible |
| 11 | become: yes |
| 12 | apt: |
Scott Baker | b2b7fd9 | 2016-11-01 16:01:38 -0700 | [diff] [blame] | 13 | name=ansible=2.2.* |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 14 | state=present |