Restructure into one folder per private repo/host, not a flat Docker/ dump
rocky-docker-lxc/, caddy-vm/, monitoring-vm/ (was missing entirely -
Grafana+Loki+Prometheus stack, refreshed and CA mount stripped same as
everything else), and automation/{ansible,automation-vm,iac}/ for the
three repos that live on the automation VM. Hawser is genuinely
deployed on all three of caddy-vm/monitoring-vm/automation-vm so it's
duplicated in each rather than picking one canonical home.
Old Ansible/ and "Infrastrucutre as Code/" content moved under
automation/ansible/old-playbooks and automation/iac/old-content as-is
for now - contents still need refreshing against the current repos and
a per-folder README, that's the next pass.
This commit is contained in:
146 files changed
+101
-84
No files matched your search
@@ -0,0 +1,10 @@
|
||||
---
|
||||
base_packages:
|
||||
- firewalld
|
||||
- policycoreutils-python-utils
|
||||
- git
|
||||
- make
|
||||
- gcc
|
||||
- cloud-utils-growpart
|
||||
- lvm2
|
||||
- xfsprogs
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- name: Package management tasks
|
||||
tags: [packages]
|
||||
block:
|
||||
- name: Clean all cached metadata
|
||||
ansible.builtin.command: dnf clean all
|
||||
become: true
|
||||
|
||||
- name: Rebuild the DNF cache
|
||||
ansible.builtin.command: dnf makecache
|
||||
become: true
|
||||
|
||||
- name: Update all packages to latest
|
||||
ansible.builtin.dnf:
|
||||
name: "*"
|
||||
state: latest
|
||||
update_cache: true
|
||||
become: true
|
||||
|
||||
- name: Reboot if kernel was upgraded
|
||||
ansible.builtin.reboot:
|
||||
reboot_timeout: 120
|
||||
pre_reboot_delay: 10
|
||||
when: ansible_facts.packages['kernel'] is defined
|
||||
become: true
|
||||
|
||||
- name: Install base system packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ base_packages }}"
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
Reference in new issue
Block a user