aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/my_server
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-21 19:01:59 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-21 19:01:59 +0200
commitf20e3bf3557451047a3ab035de503cd2ce35a550 (patch)
treeaee99bb289cf4ca1a85ac983e8148f2eb1b8d82c /roles/my_server
parentmy_server: update docker-compose flags (diff)
downloadmaintenance-f20e3bf3557451047a3ab035de503cd2ce35a550.tar.gz
maintenance-f20e3bf3557451047a3ab035de503cd2ce35a550.zip
fix some ansible-lint warnings
Diffstat (limited to 'roles/my_server')
-rw-r--r--roles/my_server/tasks/main.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/my_server/tasks/main.yml b/roles/my_server/tasks/main.yml
index 36cb4cc..eaf6aa5 100644
--- a/roles/my_server/tasks/main.yml
+++ b/roles/my_server/tasks/main.yml
@@ -1,14 +1,14 @@
- name: 'Check if {{ server_dir }}/docker-compose.yml exists'
become: true
- stat:
+ ansible.builtin.stat:
path: '{{ server_dir }}/docker-compose.yml'
register: server_exists
-- when: server_exists.stat.exists
- name: Update containers
+- name: Update containers
+ when: server_exists.stat.exists
become: true
# community.docker.docker_compose is too confusing for me to use, sorry.
- shell: |
+ ansible.builtin.shell: |
docker-compose pull -q && \
docker-compose build --force-rm --pull -q && \
docker-compose up --remove-orphans -d