aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nextcloud/tasks/config.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/nextcloud/tasks/config.yaml')
-rw-r--r--ansible/roles/nextcloud/tasks/config.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/ansible/roles/nextcloud/tasks/config.yaml b/ansible/roles/nextcloud/tasks/config.yaml
new file mode 100644
index 0000000..367e7d5
--- /dev/null
+++ b/ansible/roles/nextcloud/tasks/config.yaml
@@ -0,0 +1,12 @@
+---
+
+- name: 'config | Copy the docker-compose file'
+ ansible.builtin.template:
+ src: 'docker-compose.yaml.j2'
+ dest: 'docker-compose.yaml'
+ mode: '644'
+
+- name: 'config | Start the service'
+ ansible.builtin.command: 'docker-compose up -d'
+ register: '_compose_up_cmd'
+ changed_when: '_compose_up_cmd.rc == 0'