a lot of corrections

This commit is contained in:
2024-07-10 11:58:07 +05:30
parent 336688d51f
commit 53599a9197

View File

@@ -1,5 +1,5 @@
---
- hosts: all
- hosts: "{{ tag }}"
become: true
vars_files:
- ../secret
@@ -11,7 +11,7 @@
prompt: "State"
private: no
- name: tag
hosts: "hosts"
prompt: "hosts"
private: no
tasks:
- name: Modify state of package in debian and ubuntu
@@ -21,5 +21,3 @@
state: "{{ state }}"
autoremove: yes
when: ansible_facts['os_family'] == "Debian"
hosts:
- "{{ tag }}"