Commit 0b813e48 authored by Chris Croome's avatar Chris Croome

ansible-lint fixes

parent 65222ead
Pipeline #5251 passed with stage
in 21 seconds
......@@ -59,7 +59,7 @@
- name: Check if spreed app (Talk) is installed
command: "php occ config:app:get spreed installed_version"
ignore_errors: True
ignore_errors: true
args:
chdir: /var/www/nextcloud
become: true
......
......@@ -12,8 +12,8 @@
path: /var/www/nextcloud/config/config.php
regexp: "^ 'updater.release.channel'"
line: " 'updater.release.channel' => '{{ nextcloud_updater_release_channel }}',"
create: no
backup: yes
create: false
backup: true
- name: Backup the nextcloud database
shell: "mysqldump --default-character-set=utf8mb4 nextcloud > /var/backups/mysql/nextcloud.sql"
......@@ -95,7 +95,7 @@
args:
chdir: /var/www/nextcloud
executable: /bin/bash
become: yes
become: true
become_user: www-data
- name: Set the .htaccess RewriteBase
......@@ -103,7 +103,7 @@
args:
chdir: /var/www/nextcloud
executable: /bin/bash
become: yes
become: true
become_user: www-data
- name: Regenerate the .htaccess file
......@@ -111,7 +111,7 @@
args:
chdir: /var/www/nextcloud
executable: /bin/bash
become: yes
become: true
become_user: www-data
# https://docs.nextcloud.com/server/14/admin_manual/maintenance/manual_upgrade.html#troubleshooting
......
......@@ -25,7 +25,7 @@
command: a2dissite 000-default
- name: Apache restarted
service:
service:
name: apache2
state: reloaded
......
......@@ -121,15 +121,15 @@
# command: 'php occ config:system:set trusted_domains 2 --value="{{ hostname }}"'
# args:
# chdir: /var/www/nextcloud
#
#
# - debug:
# msg: "The value of hostname_ip.stdout : {{ hostname_ip.stdout }}"
# verbosity: 1
#
#
# - debug:
# msg: "The value of www_hostname_dig_ip.stdout : {{ www_hostname_dig_ip.stdout }}"
# verbosity: 1
#
#
# - name: "Set www.{{ hostname }} as a Nextcloud trusted domain"
# command: 'php occ config:system:set trusted_domains 3 --value="www.{{ hostname }}"'
# args:
......
......@@ -150,7 +150,7 @@
- name: Check if ojsxc app is installed
command: "php occ config:app:get ojsxc installed_version"
ignore_errors: True
ignore_errors: true
args:
chdir: /var/www/nextcloud
become: true
......@@ -245,19 +245,19 @@
# stat:
# path: /root/.prosody
# register: prosody_admin
#
#
# - block:
#
#
# - name: Generate a random password for Prosody admin
# command: pwgen -n 16 1
# register: prosody_admin_password
#
#
# - name: Prosody admin account created
# command: "prosodyctl register admin {{ hostname }} {{ prosody_admin_password.stdout }}"
#
#
# - name: Prosody admin password written to /root/.prosody
# shell: "echo 'admin: {{ prosody_admin_password.stdout }}' > /root/.prosody"
#
#
# when: prosody_admin.stat.exists == False
- name: Set the ojsxc boshUrl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment