decorrelation SITE et sous domain
[lhc/ansible.git] / tasks / update_nextcloud.yml
index e7e9855..ad72253 100644 (file)
@@ -1,5 +1,5 @@
 - name: Active le mode maintenance  # noqa : command-instead-of-module
-  become_user: "{{ nextcloud_websrv_user }}"
+  become_user: "{{ nextcloud_php_user }}"
   become: true
   ansible.builtin.command: './console maintenance:mode --on'
   args:
     follow: false
 
 - name: Desactive le mode maintenance # noqa : command-instead-of-module
-  become_user: "{{ nextcloud_websrv_user }}"
+  become_user: "{{ nextcloud_php_user }}"
   become: true
   ansible.builtin.command: './console maintenance:mode --off'
   args:
     chdir: "{{ nextcloud_webroot }}"
 
 - name: Run nextcloud upgrade script # noqa : command-instead-of-module
-  become_user: "{{ nextcloud_websrv_user }}"
+  become_user: "{{ nextcloud_php_user }}"
   become: true
   ansible.builtin.command: ./console upgrade
   args:
@@ -47,7 +47,7 @@
 - name: Bloc de tâches contrôlant la fin de la maintenance de mise à jour
   block:
     - name: Wait for nextcloud maintenance mode to become false # noqa : command-instead-of-module
-      become_user: "{{ nextcloud_websrv_user }}"
+      become_user: "{{ nextcloud_php_user }}"
       become: true
       ansible.builtin.command: ./console status
       args:
@@ -58,7 +58,7 @@
       delay: 20
   rescue:
     - name: Deactivate maintenance mode manually # noqa : command-instead-of-module
-      become_user: "{{ nextcloud_websrv_user }}"
+      become_user: "{{ nextcloud_php_user }}"
       become: true
       ansible.builtin.command: ./console maintenance:mode --off
       args: