aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nextcloud/tasks/config.yaml
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2025-06-30 21:11:10 +0000
committerKumar Damani <me@kumardamani.net>2025-06-30 21:11:10 +0000
commita125ec65a120ce23e4e692a48eaa169bc40e5506 (patch)
treec1c7ed19c1e00f33d5fe6d7caa3c622945b3c423 /ansible/roles/nextcloud/tasks/config.yaml
parent7e603bcc92c7ddc19dbfb0c46434bc6847ad3781 (diff)
ansible refactor to newer methods
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'