From 647c2fc005cf5d51dbeab84c1b5913e161969092 Mon Sep 17 00:00:00 2001 From: June Date: Tue, 18 Jun 2024 01:37:41 +0200 Subject: [PATCH] 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. --- playbooks/maintenance.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/playbooks/maintenance.yaml b/playbooks/maintenance.yaml index e5838df..8ce7caa 100644 --- a/playbooks/maintenance.yaml +++ b/playbooks/maintenance.yaml @@ -11,6 +11,21 @@ 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 hosts: all roles: