ansible-infra/playbooks/maintenance.yaml
June ff540126a1
All checks were successful
/ Ansible Lint (push) Successful in 1m47s
add chaosknoten to hosts and new hypervisors group
Also exclude that group from the tasks otherwise targeting all hosts.
2025-02-16 02:34:14 +01:00

35 lines
1 KiB
YAML

- name: Ensure NGINX repo and install on nginx_hosts
hosts: nginx_hosts
tasks:
- name: make sure NGINX repos are setup
ansible.builtin.include_role:
name: nginx
tasks_from: main/repo_setup
- name: make sure NGINX is installed
ansible.builtin.include_role:
name: nginx
tasks_from: main/nginx_install
- name: Ensure NGINX repo and install on nextcloud_hosts
hosts: nextcloud_hosts:!nginx_hosts
tasks:
- name: make sure NGINX repos are setup
ansible.builtin.include_role:
name: nginx
tasks_from: main/repo_setup
- name: make sure NGINX is installed
ansible.builtin.include_role:
name: nginx
tasks_from: main/nginx_install
vars:
nginx__version_spec: "{{ nextcloud__nginx_version_spec | default('') }}"
- name: Make Sure System Package Are Up-To-Date for all non-hypervisors
hosts: all:!hypervisors
roles:
- apt_update_and_upgrade
- name: Run deploy Playbook
ansible.builtin.import_playbook: deploy.yaml