From 650b03d7089c4c2b8fae9f97fd20b8afcf54234a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 6 May 2022 00:01:29 +0200 Subject: my_server: check w/ sudo --- roles/my_server/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/my_server/tasks/main.yml') diff --git a/roles/my_server/tasks/main.yml b/roles/my_server/tasks/main.yml index 05ef180..d88bb86 100644 --- a/roles/my_server/tasks/main.yml +++ b/roles/my_server/tasks/main.yml @@ -1,4 +1,5 @@ - name: 'Check if {{ server_dir }}/docker-compose.yml exists' + become: true stat: path: '{{ server_dir }}/docker-compose.yml' register: server_exists -- cgit v1.2.3