diff --git a/playbooks/modify-package-state.yml b/playbooks/modify-package-state.yml index b162c8e..c41f754 100644 --- a/playbooks/modify-package-state.yml +++ b/playbooks/modify-package-state.yml @@ -10,12 +10,16 @@ - name: state prompt: "State" private: no + - name: tags + prompt: "Tags" + private: no tasks: - name: Modify state of package in debian and ubuntu tags: debian apt: name: "{{ package_name }}" update_cache: yes - state: "{{ state}}" + state: "{{ state }}" autoremove: yes when: ansible_facts['os_family'] == "Debian" + tags: "{{ tags }}" \ No newline at end of file