Merge pull request 'dev' (#12) from dev into main
Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
@@ -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
|
||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user