use module parameter in command modules

This commit is contained in:
Oli
2022-12-17 00:52:12 +00:00
parent 0df2ab4779
commit ca779051f6
2 changed files with 10 additions and 10 deletions

View File

@@ -12,8 +12,8 @@
- name: Install apps
become: true
become_user: "{{ webserver_user }}"
command: php occ app:install {{ item }}
args:
command:
cmd: php occ app:install {{ item }}
chdir: "{{ nextcloud_dir }}"
creates: "{{ nextcloud_dir }}/apps/{{ item }}"
ignore_errors: true
@@ -22,8 +22,8 @@
- name: Set configs via occ
become: true
become_user: "{{ webserver_user }}"
command: php occ config:app:set {{ item }}
args:
command:
cmd: php occ config:app:set {{ item }}
chdir: "{{ nextcloud_dir }}"
loop:
- "preview jpeg_quality --value=60"

View File

@@ -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