From f870c5ec2f6e9647c493c0309395ddbfa01374d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Torma?= Date: Mon, 25 Jul 2022 22:29:22 +0200 Subject: [PATCH] do operations as root --- roles/drone/tasks/main.yaml | 6 ------ roles/swagger/tasks/main.yaml | 6 ------ roles/update/tasks/main.yaml | 6 ------ 3 files changed, 18 deletions(-) diff --git a/roles/drone/tasks/main.yaml b/roles/drone/tasks/main.yaml index 030047c..5a3fa81 100644 --- a/roles/drone/tasks/main.yaml +++ b/roles/drone/tasks/main.yaml @@ -1,22 +1,16 @@ --- - name: Update service ansible.builtin.command: docker-compose pull - become: True - become_user: drone args: chdir: /home/drone - name: Shut down service ansible.builtin.command: docker-compose down - become: True - become_user: drone args: chdir: /home/drone - name: Start service ansible.builtin.command: docker-compose up -d - become: True - become_user: drone args: chdir: /home/drone ... diff --git a/roles/swagger/tasks/main.yaml b/roles/swagger/tasks/main.yaml index f54079b..e013f03 100644 --- a/roles/swagger/tasks/main.yaml +++ b/roles/swagger/tasks/main.yaml @@ -9,22 +9,16 @@ - name: Update service ansible.builtin.command: docker-compose pull - become: True - become_user: swagger args: chdir: /home/swagger - name: Shut down service ansible.builtin.command: docker-compose down - become: True - become_user: swagger args: chdir: /home/swagger - name: Start service ansible.builtin.command: docker-compose up -d - become: True - become_user: swagger args: chdir: /home/swagger ... diff --git a/roles/update/tasks/main.yaml b/roles/update/tasks/main.yaml index cd362b4..ae1499d 100644 --- a/roles/update/tasks/main.yaml +++ b/roles/update/tasks/main.yaml @@ -1,22 +1,16 @@ --- - name: Update service ansible.builtin.command: docker-compose pull - become: True - become_user: service-user args: chdir: /home/service-user - name: Shut down service ansible.builtin.command: docker-compose down - become: True - become_user: service-user args: chdir: /home/service-user - name: Start service ansible.builtin.command: docker-compose up -d - become: True - become_user: service-user args: chdir: /home/service-user ...