aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/my_server/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/my_server/tasks')
-rw-r--r--roles/my_server/tasks/main.yml16
1 files changed, 0 insertions, 16 deletions
diff --git a/roles/my_server/tasks/main.yml b/roles/my_server/tasks/main.yml
deleted file mode 100644
index eaf6aa5..0000000
--- a/roles/my_server/tasks/main.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-- name: 'Check if {{ server_dir }}/docker-compose.yml exists'
- become: true
- ansible.builtin.stat:
- path: '{{ server_dir }}/docker-compose.yml'
- register: server_exists
-
-- name: Update containers
- when: server_exists.stat.exists
- become: true
- # community.docker.docker_compose is too confusing for me to use, sorry.
- ansible.builtin.shell: |
- docker-compose pull -q && \
- docker-compose build --force-rm --pull -q && \
- docker-compose up --remove-orphans -d
- args:
- chdir: '{{ server_dir }}'