fix linter
This commit is contained in:
parent
3ae74a31a2
commit
ba864c2ce2
2 changed files with 44 additions and 5 deletions
|
|
@ -27,7 +27,26 @@
|
|||
- name: setup nextcloud
|
||||
become_user: www-data
|
||||
become: true
|
||||
command: "/usr/bin/php occ maintenance:install -n --database 'mysql' --database-name '{{ nextcloud.db.name }}' --database-user '{{ nextcloud.db.user }}' --database-pass '{{ nextcloud.db.pw }}' --admin-user '{{ nextcloud.admin.name }}' --admin-pass '{{ nextcloud.admin.pw }}' --data-dir '{{ nextcloud.datadir }}'"
|
||||
command:
|
||||
argv:
|
||||
- /usr/bin/php
|
||||
- occ
|
||||
- maintenance:install
|
||||
- -n
|
||||
- --database
|
||||
- mysql
|
||||
- --database-name
|
||||
- '{{ nextcloud.db.name }}'
|
||||
- --database-user
|
||||
- '{{ nextcloud.db.user }}'
|
||||
- --database-pass
|
||||
- '{{ nextcloud.db.pw }}'
|
||||
- --admin-user
|
||||
- '{{ nextcloud.admin.name }}'
|
||||
- --admin-pass
|
||||
- '{{ nextcloud.admin.pw }}'
|
||||
- --data-dir
|
||||
- '{{ nextcloud.datadir }}'
|
||||
args:
|
||||
chdir: /var/www/nextcloud
|
||||
creates: /var/www/nextcloud/config/config.php
|
||||
|
|
@ -35,14 +54,29 @@
|
|||
- name: set nextcloud trusted domains
|
||||
become_user: www-data
|
||||
become: true
|
||||
command: '/usr/bin/php occ config:system:set trusted_domains 1 --value "{{ nextcloud.externalurl }}"'
|
||||
command: # noqa no-changed-when
|
||||
argv:
|
||||
- /usr/bin/php
|
||||
- occ
|
||||
- config:system:set
|
||||
- trusted_domains
|
||||
- 1
|
||||
- --value
|
||||
- "{{ nextcloud.externalurl }}"
|
||||
args:
|
||||
chdir: /var/www/nextcloud
|
||||
|
||||
- name: set other nextcloud config values
|
||||
become_user: www-data
|
||||
become: true
|
||||
command: '/usr/bin/php occ config:system:set "{{ item.key }}" --value "{{ item.value }}"'
|
||||
command: # noqa no-changed-when
|
||||
argv:
|
||||
- /usr/bin/php
|
||||
- occ
|
||||
- config:system:set
|
||||
- "{{ item.key }}"
|
||||
- --value
|
||||
- "{{ item.value }}"
|
||||
args:
|
||||
chdir: /var/www/nextcloud
|
||||
with_items:
|
||||
|
|
@ -62,6 +96,9 @@
|
|||
template:
|
||||
src: nginx.j2
|
||||
dest: /etc/nginx/sites-available/nextcloud
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue