dev #12

Merged
khwezi merged 3 commits from dev into main 2026-04-11 15:43:00 +02:00
7 changed files with 11 additions and 9 deletions

View File

@@ -1,21 +1,22 @@
[all:vars] [all:vars]
ansible_python_interpreter=/usr/bin/python3 ansible_python_interpreter=/usr/bin/python3
ansible_user=ansible ansible_user=ansible
ansible_ssh_private_key_file=~/.ssh/id_ed25519
[lxc-hosts] [lxc_hosts]
postgres ansible_host=192.168.1.170 postgres ansible_host=192.168.1.170
gitea ansible_host=192.168.1.172 gitea ansible_host=192.168.1.172
appserver ansible_host=192.168.1.173 appserver ansible_host=192.168.1.173
[workload-hosts] [workload_hosts]
vpn ansible_host=192.168.1.138 vpn ansible_host=192.168.1.138
authentik ansible_host=192.168.1.171 authentik ansible_host=192.168.1.171
pangolingw ansible_host=192.168.1.175 pangolingw ansible_host=192.168.1.175
[docker-hosts] [docker_hosts]
authentik ansible_host=192.168.1.171 authentik ansible_host=192.168.1.171
appserver ansible_host=192.168.1.173 appserver ansible_host=192.168.1.173
[k3s-hosts] [k3s_hosts]
k3smainnode ansible_host=192.168.1.177 k3smainnode ansible_host=192.168.1.177
k3sworkernode ansible_host=192.168.1.178 k3sworkernode ansible_host=192.168.1.178

View File

@@ -2,7 +2,7 @@
# Note: this playbook requires an interactive mode or passed secret for privilege escalation # Note: this playbook requires an interactive mode or passed secret for privilege escalation
--- ---
- name: Create ansible user and configure passwordless sudo - name: Create ansible user and configure passwordless sudo
hosts: workload-hosts hosts: workload_hosts
become: true become: true
become_method: sudo become_method: sudo
vars: vars:

View File

@@ -2,7 +2,7 @@
# Note: this playbook requires an interactive mode or passed secret for privilege escalation # Note: this playbook requires an interactive mode or passed secret for privilege escalation
--- ---
- name: Create ansible user and configure passwordless sudo - name: Create ansible user and configure passwordless sudo
hosts: lxc-hosts hosts: lxc_hosts
become: true become: true
become_method: sudo become_method: sudo
vars: vars:

View File

@@ -1,7 +1,7 @@
# command: ansible-playbook -i common/config.ini common/install-docker.yml # command: ansible-playbook -i common/config.ini common/install-docker.yml
--- ---
- name: Install Docker and Test - name: Install Docker and Test
hosts: docker-hosts hosts: docker_hosts
become: true become: true
become_method: sudo become_method: sudo

View File

@@ -1,7 +1,7 @@
# command: ansible-playbook -i common/config.ini common/update-docker.yml # command: ansible-playbook -i common/config.ini common/update-docker.yml
--- ---
- name: Update Docker only on hosts where it is installed - name: Update Docker only on hosts where it is installed
hosts: docker-hosts hosts: docker_hosts
become: true become: true
become_method: sudo become_method: sudo

View File

@@ -1,7 +1,7 @@
# command: ansible-playbook -i common/config.ini common/update-release.yml # command: ansible-playbook -i common/config.ini common/update-release.yml
--- ---
- name: Upgrade Ubuntu to next release - name: Upgrade Ubuntu to next release
hosts: workload-hosts, k3s-hosts hosts: workload_hosts, k3s_hosts
become: true become: true
tasks: tasks:
- name: Ensure update-manager-core is installed - name: Ensure update-manager-core is installed

View File

@@ -1,3 +1,4 @@
# command: ansible-playbook -i common/config.ini update-vpn.yml
--- ---
- name: Maintain VPN and Pi-hole - name: Maintain VPN and Pi-hole
hosts: vpn hosts: vpn