aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-28 03:42:11 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-28 03:42:13 +0200
commit690d9c822fa14acdfa076f7612b3e860296e061e (patch)
tree65303794baea9a035e560c8348e0bdf96b63a28b /roles
parentMakefile: best practices (diff)
downloadmaintenance-690d9c822fa14acdfa076f7612b3e860296e061e.tar.gz
maintenance-690d9c822fa14acdfa076f7612b3e860296e061e.zip
remove the my_server role
It's no longer adequate since I have all the service split into different docker-compose.yml files; and I don't necessarily want to upgrade all of them at once. Maybe I'll bring it back with something like `make upgrade/all` later.
Diffstat (limited to 'roles')
-rw-r--r--roles/my_server/defaults/main.yml1
-rw-r--r--roles/my_server/tasks/main.yml16
2 files changed, 0 insertions, 17 deletions
diff --git a/roles/my_server/defaults/main.yml b/roles/my_server/defaults/main.yml
deleted file mode 100644
index 7955df6..0000000
--- a/roles/my_server/defaults/main.yml
+++ /dev/null
@@ -1 +0,0 @@
-server_dir: /srv/server
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 }}'