From b120a31c7d9f0983bbf71130922e5b2ce1b8aa28 Mon Sep 17 00:00:00 2001 From: "Andreas B. Mundt" Date: Mon, 1 Nov 2021 12:54:03 +0100 Subject: [PATCH] Combined playbook for cloudboxes and separate (nextcloud) hosts. --- cloudbox.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/cloudbox.yml b/cloudbox.yml index 6e89cdd..81634fd 100644 --- a/cloudbox.yml +++ b/cloudbox.yml @@ -2,7 +2,7 @@ # This playbook deploys the cloudbox on a minimal installation. - name: apply configuration to the cloudbox - hosts: all + hosts: cloudboxes remote_user: ansible become: Yes vars: @@ -31,4 +31,24 @@ # - ddns-update # - low-power - nextcloud + - nextcloud-upgrade - backup + + +## Hosts in the the 'only_nextcloud'-group are only upgraded: + +- name: upgrade nextcloud only + hosts: only_nextcloud + remote_user: ansible + become: Yes + vars: + nc_dir: "/var/www/nextcloud" + nc_apps: + - calendar + - notes + ansible_python_interpreter: "/usr/bin/python3" + + roles: + - up2date-debian + - nextcloud-upgrade +