Added tags debian and fedora

This commit is contained in:
2024-01-12 23:30:38 +05:30
parent 880331ad9d
commit 4bd4a4bbc1

View File

@@ -10,14 +10,16 @@
private: no
tasks:
- name: Modify state of package in fedora
tags: fedora
ansible.builtin.package:
name: "{{ package_name }}"
state: "{{ state }}"
when: ansible_distribution == 'Fedora'
- name: Modify state of package in debian
tags: debian
apt:
name: "{{ package_name }}"
update_cache: yes
state: "{{ state}}"
autoremove: yes
autoremove: yes
when: ansible_distribution == 'Debian'