diff --git a/tasks/install.yml b/tasks/install.yml index 4b1edd6..555c83a 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -5,6 +5,9 @@ - config - name: Install packages - package: name='{{ ansible_packages }}' state=latest update_cache=yes + package: + name: '{{ ansible_packages }}' + state: present + update_cache: yes tags: - installation diff --git a/tasks/uninstall.yml b/tasks/uninstall.yml index 9211a40..e2790ed 100644 --- a/tasks/uninstall.yml +++ b/tasks/uninstall.yml @@ -24,4 +24,7 @@ - ansible_distribution == "Debian" - name: Remove Ansible's packages - package: name='{{ ansible_packages }}' state=absent update_cache=yes + package: + name: '{{ ansible_packages }}' + state: absent + update_cache: yes