This commit is contained in:
2024-07-10 11:47:15 +05:30
parent ef62074ddb
commit c8811e08a9

View File

@@ -10,12 +10,16 @@
- name: state - name: state
prompt: "State" prompt: "State"
private: no private: no
- name: tags
prompt: "Tags"
private: no
tasks: tasks:
- name: Modify state of package in debian and ubuntu - name: Modify state of package in debian and ubuntu
tags: debian tags: debian
apt: apt:
name: "{{ package_name }}" name: "{{ package_name }}"
update_cache: yes update_cache: yes
state: "{{ state}}" state: "{{ state }}"
autoremove: yes autoremove: yes
when: ansible_facts['os_family'] == "Debian" when: ansible_facts['os_family'] == "Debian"
tags: "{{ tags }}"