From 690d9c822fa14acdfa076f7612b3e860296e061e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 28 Jul 2023 03:42:11 +0200 Subject: 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. --- maintenance.yml | 1 - roles/my_server/defaults/main.yml | 1 - roles/my_server/tasks/main.yml | 16 ---------------- 3 files changed, 18 deletions(-) delete mode 100644 roles/my_server/defaults/main.yml delete mode 100644 roles/my_server/tasks/main.yml diff --git a/maintenance.yml b/maintenance.yml index a2903ab..c152a21 100644 --- a/maintenance.yml +++ b/maintenance.yml @@ -9,5 +9,4 @@ - {role: yay, when: has_yay} - {role: flatpak, when: has_flatpak} - {role: vagrant, when: has_vagrant} - - my_server - {role: docker, when: has_docker} 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 }}' -- cgit v1.2.3