aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/server
diff options
context:
space:
mode:
Diffstat (limited to 'roles/server')
-rw-r--r--roles/server/defaults/main.yml1
-rw-r--r--roles/server/tasks/main.yml23
2 files changed, 0 insertions, 24 deletions
diff --git a/roles/server/defaults/main.yml b/roles/server/defaults/main.yml
deleted file mode 100644
index eda8336..0000000
--- a/roles/server/defaults/main.yml
+++ /dev/null
@@ -1 +0,0 @@
-server_dir: '{{ ansible_env.HOME }}/server'
diff --git a/roles/server/tasks/main.yml b/roles/server/tasks/main.yml
deleted file mode 100644
index 05ef180..0000000
--- a/roles/server/tasks/main.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-- name: 'Check if {{ server_dir }}/docker-compose.yml exists'
- stat:
- path: '{{ server_dir }}/docker-compose.yml'
- register: server_exists
-
-- when: server_exists.stat.exists
- become: true
- block:
- # community.docker.docker_compose is too confusing for me to use, sorry.
- - name: docker-compose pull
- command: docker-compose pull --quiet
- args:
- chdir: '{{ server_dir }}'
-
- - name: docker-compose build
- command: docker-compose build --pull
- args:
- chdir: '{{ server_dir }}'
-
- - name: docker-compose up
- command: docker-compose up -d
- args:
- chdir: '{{ server_dir }}'