Premier commit
This commit is contained in:
commit
518c7ab04b
49 files changed
+1120
No files matched your search
@@ -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 }}"
|
||||
Reference in new issue
Block a user