Also ensure NGINX repo and install before apt update for nextcloud_hosts

Do that because the nextcloud role uses NGINX via the nginx role
internally as well, but nextcloud_hosts aren't necessarily in the
nginx_hosts group then.
This commit is contained in:
June 2024-06-18 01:37:41 +02:00
parent 11bbf187c6
commit 647c2fc005
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -11,6 +11,21 @@
name: nginx name: nginx
tasks_from: main/nginx_install 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 - name: Make Sure System Package Are Up-To-Date
hosts: all hosts: all
roles: roles: