nextcloud: move delegate_to to main.yml
This commit is contained in:
parent
86545d60ef
commit
24c363791e
2 changed files with 5 additions and 3 deletions
|
@ -5,7 +5,6 @@
|
|||
state: present
|
||||
login_unix_socket: "{{ mysql_socket }}"
|
||||
login_user: root
|
||||
delegate_to: "{{ database_host }}"
|
||||
|
||||
- name: "Database | Richte Datenbank-Benutzer ein | {{ item.name }}"
|
||||
community.mysql.mysql_user:
|
||||
|
@ -17,4 +16,3 @@
|
|||
login_unix_socket: "{{ mysql_socket }}"
|
||||
login_user: root
|
||||
update_password: on_create
|
||||
delegate_to: "{{ database_host }}"
|
||||
|
|
|
@ -20,8 +20,12 @@
|
|||
|
||||
- name: Run database tasks
|
||||
ansible.builtin.include_tasks: database.yml
|
||||
tags: database
|
||||
tags: always
|
||||
loop: "{{ nextcloud_instances }}"
|
||||
args:
|
||||
apply:
|
||||
delegate_to: "{{ database_host }}"
|
||||
tags: database
|
||||
|
||||
- name: Run user tasks
|
||||
ansible.builtin.include_tasks: user.yml
|
||||
|
|
Loading…
Reference in a new issue