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 ...