From c8811e08a956d4b842950b43f836469b5644f03f Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Wed, 10 Jul 2024 11:47:15 +0530 Subject: [PATCH] add tags --- playbooks/modify-package-state.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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