diff --git a/installVIM.yml b/installVIM.yml new file mode 100644 index 0000000..0b59641 --- /dev/null +++ b/installVIM.yml @@ -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' diff --git a/installcurl.yml b/installcurl.yml new file mode 100644 index 0000000..caeedd5 --- /dev/null +++ b/installcurl.yml @@ -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' diff --git a/update_machines.yml b/update_machines.yml new file mode 100644 index 0000000..ce64c06 --- /dev/null +++ b/update_machines.yml @@ -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'