commit all
This commit is contained in:
parent
dac750a42e
commit
554bf8a7e6
15
installVIM.yml
Normal file
15
installVIM.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Install Vim on Ubuntu servers
|
||||
package:
|
||||
name: vim
|
||||
state: present
|
||||
when: ansible_facts['os_family'] == 'Debian'
|
||||
|
||||
- name: Install Vim on Fedora servers
|
||||
dnf:
|
||||
name: vim
|
||||
state: present
|
||||
when: ansible_facts['distribution'] == 'Fedora'
|
||||
15
installcurl.yml
Normal file
15
installcurl.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Install curl on Ubuntu servers
|
||||
package:
|
||||
name: curl
|
||||
state: present
|
||||
when: ansible_facts['os_family'] == 'Debian'
|
||||
|
||||
- name: Install curl on Fedora servers
|
||||
dnf:
|
||||
name: curl
|
||||
state: present
|
||||
when: ansible_facts['distribution'] == 'Fedora'
|
||||
17
update_machines.yml
Normal file
17
update_machines.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Update all servers
|
||||
become: true
|
||||
apt:
|
||||
upgrade: dist
|
||||
update_cache: yes
|
||||
when: ansible_facts['distribution'] == 'Ubuntu'
|
||||
|
||||
- name: Install Neofetch
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
name: neofetch
|
||||
state: present
|
||||
when: ansible_facts['distribution'] == 'Fedora'
|
||||
Loading…
Reference in New Issue
Block a user