Added first ubuntu server playbooks

This commit is contained in:
Ebbe Baß
2026-07-14 08:29:24 +02:00
parent c5777eda15
commit cfa3f6ced2
2 changed files with 512 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
- name: Install basic features
hosts: ansible_master
become: true
tasks:
- name: Update apt
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
- name: Install net-tools
ansible.builtin.apt:
name: net-tools
state: present
- name: Install neofetch or fastfetch
block:
- name: Install neofetch
ansible.builtin.apt:
name: neofetch
state: present
rescue:
- name: If neofetch is depricated install fastfetch
ansible.builtin.apt:
name: fastfetch
state: present