Added tags debian and fedora
This commit is contained in:
@@ -10,14 +10,16 @@
|
|||||||
private: no
|
private: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: Modify state of package in fedora
|
- name: Modify state of package in fedora
|
||||||
|
tags: fedora
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ package_name }}"
|
name: "{{ package_name }}"
|
||||||
state: "{{ state }}"
|
state: "{{ state }}"
|
||||||
when: ansible_distribution == 'Fedora'
|
when: ansible_distribution == 'Fedora'
|
||||||
- name: Modify state of package in debian
|
- name: Modify state of package in 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_distribution == 'Debian'
|
when: ansible_distribution == 'Debian'
|
||||||
|
|||||||
Reference in New Issue
Block a user