From aa62fec98a433cead0a6d706ba599af99bc05ad7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 17 Mar 2022 09:47:04 +0300 Subject: roles: my-server -> my_server --- roles/my-server/defaults/main.yml | 1 - roles/my-server/tasks/main.yml | 23 ----------------------- 2 files changed, 24 deletions(-) delete mode 100644 roles/my-server/defaults/main.yml delete mode 100644 roles/my-server/tasks/main.yml (limited to 'roles/my-server') diff --git a/roles/my-server/defaults/main.yml b/roles/my-server/defaults/main.yml deleted file mode 100644 index eda8336..0000000 --- a/roles/my-server/defaults/main.yml +++ /dev/null @@ -1 +0,0 @@ -server_dir: '{{ ansible_env.HOME }}/server' diff --git a/roles/my-server/tasks/main.yml b/roles/my-server/tasks/main.yml deleted file mode 100644 index 05ef180..0000000 --- a/roles/my-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 }}' -- cgit v1.2.3