ansible-infra/playbooks/maintenance.yaml
June 7420ed6010
nginx(role): split up repo setup and install task lists to estab. conv.
Split up repo setup and package installation after all to establish this
as a convention (its already done this way in the docker role and was
done this way in the nginx role before) to highlight that an external
repo is used.
2025-02-18 05:43:39 +01:00

20 lines
625 B
YAML

- name: Ensure NGINX repo setup and nginx install on nginx_hosts and nextcloud_hosts
hosts: nginx_hosts:nextcloud_hosts
tasks:
- name: Ensure NGINX repo is setup
ansible.builtin.include_role:
name: nginx
tasks_from: main/02_repo_setup.yaml
- name: Ensure nginx is installed
ansible.builtin.include_role:
name: nginx
tasks_from: main/03_nginx_install.yaml
- 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