nextcloud: move delegate_to to main.yml

This commit is contained in:
phil 2023-10-22 20:48:17 +02:00
parent 86545d60ef
commit 24c363791e
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,6 @@
state: present state: present
login_unix_socket: "{{ mysql_socket }}" login_unix_socket: "{{ mysql_socket }}"
login_user: root login_user: root
delegate_to: "{{ database_host }}"
- name: "Database | Richte Datenbank-Benutzer ein | {{ item.name }}" - name: "Database | Richte Datenbank-Benutzer ein | {{ item.name }}"
community.mysql.mysql_user: community.mysql.mysql_user:
@ -17,4 +16,3 @@
login_unix_socket: "{{ mysql_socket }}" login_unix_socket: "{{ mysql_socket }}"
login_user: root login_user: root
update_password: on_create update_password: on_create
delegate_to: "{{ database_host }}"

View file

@ -20,8 +20,12 @@
- name: Run database tasks - name: Run database tasks
ansible.builtin.include_tasks: database.yml ansible.builtin.include_tasks: database.yml
tags: database tags: always
loop: "{{ nextcloud_instances }}" loop: "{{ nextcloud_instances }}"
args:
apply:
delegate_to: "{{ database_host }}"
tags: database
- name: Run user tasks - name: Run user tasks
ansible.builtin.include_tasks: user.yml ansible.builtin.include_tasks: user.yml