diff --git a/roles/drone/tasks/main.yaml b/roles/drone/tasks/main.yaml index 5a3fa81..bd8cd34 100644 --- a/roles/drone/tasks/main.yaml +++ b/roles/drone/tasks/main.yaml @@ -1,16 +1,13 @@ --- -- name: Update service - ansible.builtin.command: docker-compose pull +- ansible.builtin.command: docker-compose pull args: chdir: /home/drone -- name: Shut down service - ansible.builtin.command: docker-compose down +- ansible.builtin.command: docker-compose down args: chdir: /home/drone -- name: Start service - ansible.builtin.command: docker-compose up -d +- ansible.builtin.command: docker-compose up -d args: chdir: /home/drone ... diff --git a/roles/matrix/tasks/main.yaml b/roles/matrix/tasks/main.yaml index b0681fd..28d3334 100644 --- a/roles/matrix/tasks/main.yaml +++ b/roles/matrix/tasks/main.yaml @@ -1,6 +1,5 @@ --- -- name: Copy docker-compose configuration - ansible.builtin.copy: +- ansible.builtin.copy: src: docker-compose.yaml dest: /home/service-user/docker-compose.yaml owner: service-user diff --git a/roles/nexus/tasks/main.yaml b/roles/nexus/tasks/main.yaml index b0681fd..28d3334 100644 --- a/roles/nexus/tasks/main.yaml +++ b/roles/nexus/tasks/main.yaml @@ -1,6 +1,5 @@ --- -- name: Copy docker-compose configuration - ansible.builtin.copy: +- ansible.builtin.copy: src: docker-compose.yaml dest: /home/service-user/docker-compose.yaml owner: service-user diff --git a/roles/prometheus/tasks/main.yaml b/roles/prometheus/tasks/main.yaml index dbe67df..f7d7ff3 100644 --- a/roles/prometheus/tasks/main.yaml +++ b/roles/prometheus/tasks/main.yaml @@ -1,30 +1,26 @@ --- -- name: Copy prometheus configuration - ansible.builtin.copy: +- ansible.builtin.copy: src: prometheus.yml dest: /home/service-user/prometheus/prometheus.yml owner: root group: root mode: '0644' -- name: Copy alertmanager configuration - ansible.builtin.copy: +- ansible.builtin.copy: src: alertmanager.yml dest: /home/service-user/alertmanager/config.yml owner: root group: root mode: '0644' -- name: Copy alert rules - ansible.builtin.copy: +- ansible.builtin.copy: src: alert.rules dest: /home/service-user/prometheus/alert.rules owner: root group: root mode: '0644' -- name: Copy docker-compose configuration - ansible.builtin.copy: +- ansible.builtin.copy: src: docker-compose.yaml dest: /home/service-user/docker-compose.yaml owner: service-user diff --git a/roles/swagger/tasks/main.yaml b/roles/swagger/tasks/main.yaml index e013f03..d2be2e9 100644 --- a/roles/swagger/tasks/main.yaml +++ b/roles/swagger/tasks/main.yaml @@ -1,24 +1,20 @@ --- -- name: Copy docker-compose configuration - ansible.builtin.copy: +- ansible.builtin.copy: src: docker-compose.yml dest: /home/swagger/docker-compose.yml owner: swagger group: swagger mode: '0644' -- name: Update service - ansible.builtin.command: docker-compose pull +- ansible.builtin.command: docker-compose pull args: chdir: /home/swagger -- name: Shut down service - ansible.builtin.command: docker-compose down +- ansible.builtin.command: docker-compose down args: chdir: /home/swagger -- name: Start service - ansible.builtin.command: docker-compose up -d +- ansible.builtin.command: docker-compose up -d args: chdir: /home/swagger ... diff --git a/roles/update/tasks/main.yaml b/roles/update/tasks/main.yaml index ae1499d..9356058 100644 --- a/roles/update/tasks/main.yaml +++ b/roles/update/tasks/main.yaml @@ -1,16 +1,13 @@ --- -- name: Update service - ansible.builtin.command: docker-compose pull +- ansible.builtin.command: docker-compose pull args: chdir: /home/service-user -- name: Shut down service - ansible.builtin.command: docker-compose down +- ansible.builtin.command: docker-compose down args: chdir: /home/service-user -- name: Start service - ansible.builtin.command: docker-compose up -d +- ansible.builtin.command: docker-compose up -d args: chdir: /home/service-user ...