diff --git a/tasks/install.yml b/tasks/install.yml index 6b087d1..6c6229d 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -3,4 +3,7 @@ include_tasks: add_repo_{{ ansible_os_family }}.yml - name: Install packages - package: name='{{ powershell_packages }}' state=latest update_cache=yes + package: + name: '{{ powershell_packages }}' + state: present + update_cache: yes diff --git a/tasks/uninstall.yml b/tasks/uninstall.yml index 0464fdc..5733a67 100644 --- a/tasks/uninstall.yml +++ b/tasks/uninstall.yml @@ -23,4 +23,7 @@ - ansible_distribution == "Debian" - name: Remove AnsiPowerShellble's packages - package: name='{{ powershell_packages }}' state=absent update_cache=yes + package: + name: '{{ powershell_packages }}' + state: absent + update_cache: yes