Premier commit

This commit is contained in:
gitea committed 2026-10-18 16:41:04 +02:00
commit 518c7ab04b
49 files changed
+1120

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
---
- name: Installation groupées
hosts: all
become: yes
become_user: root
tasks:
- name: "install NTP & VI on Debian"
when: ansible_distribution == "Debian"
ansible.builtin.apt: pkg={{ item }}
loop:
- ntp
- vim
- name: "Uninstall NTP & VI on RedHat with vars"
when: ansible_distribution == "Rocky" or ansible_distribution == 'Red Hat Enterprise Linux'
vars:
ServiceName:
- chrony
- vi
ansible.builtin.dnf:
name: "{{ ServiceName }}"
state: absent
# state: present
loop:
- "{{ ServiceName }}"
- "{{ ServiceName }}"