use module parameter in command modules
This commit is contained in:
@@ -68,8 +68,8 @@
|
||||
- name: Set default config
|
||||
become: true
|
||||
become_user: "{{ webserver_user }}"
|
||||
command: php occ config:import /tmp/nextcloud.config.json
|
||||
args:
|
||||
command:
|
||||
cmd: php occ config:import /tmp/nextcloud.config.json
|
||||
chdir: "{{ nextcloud_dir }}"
|
||||
|
||||
when: not nextcloud_dir_stat.stat.exists
|
||||
@@ -79,8 +79,8 @@
|
||||
- name: Run nextcloud's updater.phar in non-interactive way
|
||||
become: true
|
||||
become_user: "{{ webserver_user }}"
|
||||
command: 'php updater/updater.phar --no-interaction'
|
||||
args:
|
||||
command:
|
||||
cmd: 'php updater/updater.phar --no-interaction'
|
||||
chdir: "{{ nextcloud_dir }}"
|
||||
register: nextcloud_update_result
|
||||
changed_when: "'Start update' in nextcloud_update_result.stdout"
|
||||
@@ -93,8 +93,8 @@
|
||||
- name: DB tuning after update
|
||||
become: true
|
||||
become_user: "{{ webserver_user }}"
|
||||
command: php occ {{ item }}
|
||||
args:
|
||||
command:
|
||||
cmd: php occ {{ item }}
|
||||
chdir: "{{ nextcloud_dir }}"
|
||||
loop:
|
||||
- db:add-missing-indices
|
||||
|
||||
Reference in New Issue
Block a user