add tags
This commit is contained in:
@@ -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 }}"
|
||||||
Reference in New Issue
Block a user