ansible-roles/library/roles/ansible_ppa/tasks/ansible-packages.yml

16 lines
461 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' update_cache=yes
register: update_apt_cache
tags: ansible
- name: Install the ansible package
apt: pkg=ansible state={{ ansible_pkg_state }} update_cache=yes cache_valid_time=3600
tags: ansible