add chaosknoten to hosts and new hypervisors group

Also exclude that group from the tasks otherwise targeting all hosts.
This commit is contained in:
June 2025-02-16 02:34:14 +01:00
parent 61cd5053d0
commit ff540126a1
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
3 changed files with 9 additions and 4 deletions
inventories/chaosknoten
playbooks

View file

@ -4,6 +4,8 @@ all:
ansible_host: ccchoir-intern.hamburg.ccc.de ansible_host: ccchoir-intern.hamburg.ccc.de
ansible_user: chaos ansible_user: chaos
ansible_ssh_common_args: -J ssh://chaos@public-reverse-proxy.hamburg.ccc.de ansible_ssh_common_args: -J ssh://chaos@public-reverse-proxy.hamburg.ccc.de
chaosknoten:
ansible_host: chaosknoten.hamburg.ccc.de
cloud: cloud:
ansible_host: cloud-intern.hamburg.ccc.de ansible_host: cloud-intern.hamburg.ccc.de
ansible_user: chaos ansible_user: chaos
@ -57,6 +59,9 @@ all:
ansible_host: zammad-intern.hamburg.ccc.de ansible_host: zammad-intern.hamburg.ccc.de
ansible_user: chaos ansible_user: chaos
ansible_ssh_common_args: -J ssh://chaos@public-reverse-proxy.hamburg.ccc.de ansible_ssh_common_args: -J ssh://chaos@public-reverse-proxy.hamburg.ccc.de
hypervisors:
hosts:
chaosknoten:
base_config_hosts: base_config_hosts:
hosts: hosts:
ccchoir: ccchoir:

View file

@ -59,8 +59,8 @@
roles: roles:
- prometheus_node_exporter - prometheus_node_exporter
- name: Configure unattended upgrades - name: Configure unattended upgrades for all non-hypervisors
hosts: all hosts: all:!hypervisors
become: true become: true
roles: roles:
- role: debops.debops.unattended_upgrades - role: debops.debops.unattended_upgrades

View file

@ -26,8 +26,8 @@
vars: vars:
nginx__version_spec: "{{ nextcloud__nginx_version_spec | default('') }}" nginx__version_spec: "{{ nextcloud__nginx_version_spec | default('') }}"
- name: Make Sure System Package Are Up-To-Date - name: Make Sure System Package Are Up-To-Date for all non-hypervisors
hosts: all hosts: all:!hypervisors
roles: roles:
- apt_update_and_upgrade - apt_update_and_upgrade