forked from ISTI-ansible-roles/ansible-roles
25 lines
582 B
YAML
25 lines
582 B
YAML
---
|
|
- name: Remove the now obsolete rquillo ppa for ansible
|
|
apt_repository: repo='ppa:rquillo/ansible' state=absent
|
|
register: update_apt_cache_rquillo
|
|
tags:
|
|
- ansible
|
|
|
|
- name: Add the ansible ppa for ansible
|
|
apt_repository: repo='ppa:ansible/ansible'
|
|
register: update_apt_cache
|
|
tags:
|
|
- ansible
|
|
|
|
- name: Update the apt cache if needed
|
|
apt: update_cache=yes
|
|
when: (update_apt_cache|changed) or (update_apt_cache_rquillo|changed)
|
|
tags:
|
|
- ansible
|
|
|
|
- name: Install the ansible package
|
|
apt: pkg=ansible state={{ ansible_pkg_state }}
|
|
tags:
|
|
- ansible
|
|
|