diff --git a/ansible_ppa/tasks/ansible-packages.yml b/ansible_ppa/tasks/ansible-packages.yml index 26926f5d..8300abc6 100644 --- a/ansible_ppa/tasks/ansible-packages.yml +++ b/ansible_ppa/tasks/ansible-packages.yml @@ -2,23 +2,14 @@ - name: Remove the now obsolete rquillo ppa for ansible apt_repository: repo='ppa:rquillo/ansible' state=absent register: update_apt_cache_rquillo - tags: - - ansible + tags: ansible - name: Add the ansible ppa for ansible - apt_repository: repo='ppa:ansible/ansible' + apt_repository: repo='ppa:ansible/ansible' update_cache=yes 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 + tags: ansible - name: Install the ansible package apt: pkg=ansible state={{ ansible_pkg_state }} - tags: - - ansible + tags: ansible