Compare commits
3 Commits
6c4c3d0794
...
5e5dabff1a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e5dabff1a
|
||
|
|
d4aa128e4c
|
||
|
|
512c7a82e5
|
@@ -63,7 +63,43 @@
|
||||
loop_control:
|
||||
index_var: idx
|
||||
# @TODO create task based on shell command `sudo /snap/bin/nextcloud.occ config:system:set default_phone_region --value="US"`
|
||||
# @TODO create task based on shell command `sudo /snap/bin/nextcloud.occ config:system:set overwriteprotocol --value="https"` for Caddy task
|
||||
- name: Set default phone region
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- /snap/bin/nextcloud.occ
|
||||
- "config:system:set"
|
||||
- default_phone_region
|
||||
- "--value={{ config.nextcloud.phone_region }}"
|
||||
# @TODO create task based on shell command:
|
||||
# `sudo /snap/bin/nextcloud.occ config:system:set overwrite.cli.url --value="https://cloud.{{ fqdn }}"` for Caddy task
|
||||
- name: Set overwrite CLI URL
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- /snap/bin/nextcloud.occ
|
||||
- "config:system:set"
|
||||
- overwrite.cli.url
|
||||
- "--value=cloud.{{ hostvars[inventory_hostname].fqdn }}"
|
||||
# @TODO create task based on shell command `sudo /snap/bin/nextcloud.occ config:system:set overwriteprotocol --value="https"` for Caddy task
|
||||
- name: Overwrite protocol
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- /snap/bin/nextcloud.occ
|
||||
- "config:system:set"
|
||||
- overwriteprotocol
|
||||
- --value="https"
|
||||
# @TODO create system-level bash alias for `/snap/bin/nextcloud.occ` command
|
||||
- name: Get Nextcloud snap binaries
|
||||
ansible.builtin.find:
|
||||
paths:
|
||||
- /snap/bin
|
||||
patterns:
|
||||
- nextcloud\..*
|
||||
recurse: false
|
||||
use_regex: true
|
||||
register: nextcloud_snap_binaries
|
||||
- name: Create symbolic links for Nextcloud snap binaries
|
||||
ansible.builtin.file:
|
||||
dest: "/usr/sbin/{{ item.path | basename }}"
|
||||
src: "{{ item.path }}"
|
||||
state: link
|
||||
loop: "{{ nextcloud_snap_binaries.files }}"
|
||||
|
||||
@@ -294,6 +294,7 @@ config:
|
||||
username: admin
|
||||
# @TODO change this password to ansible-vaulted actual choice password later
|
||||
password: password123 # @NOTE placeholder
|
||||
phone_region: US
|
||||
aria:
|
||||
checksum: ~
|
||||
secret: ~
|
||||
|
||||
Reference in New Issue
Block a user