This commit is contained in:
parent
e82e805d86
commit
f870c5ec2f
@ -1,22 +1,16 @@
|
|||||||
---
|
---
|
||||||
- name: Update service
|
- name: Update service
|
||||||
ansible.builtin.command: docker-compose pull
|
ansible.builtin.command: docker-compose pull
|
||||||
become: True
|
|
||||||
become_user: drone
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/drone
|
chdir: /home/drone
|
||||||
|
|
||||||
- name: Shut down service
|
- name: Shut down service
|
||||||
ansible.builtin.command: docker-compose down
|
ansible.builtin.command: docker-compose down
|
||||||
become: True
|
|
||||||
become_user: drone
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/drone
|
chdir: /home/drone
|
||||||
|
|
||||||
- name: Start service
|
- name: Start service
|
||||||
ansible.builtin.command: docker-compose up -d
|
ansible.builtin.command: docker-compose up -d
|
||||||
become: True
|
|
||||||
become_user: drone
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/drone
|
chdir: /home/drone
|
||||||
...
|
...
|
||||||
|
@ -9,22 +9,16 @@
|
|||||||
|
|
||||||
- name: Update service
|
- name: Update service
|
||||||
ansible.builtin.command: docker-compose pull
|
ansible.builtin.command: docker-compose pull
|
||||||
become: True
|
|
||||||
become_user: swagger
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/swagger
|
chdir: /home/swagger
|
||||||
|
|
||||||
- name: Shut down service
|
- name: Shut down service
|
||||||
ansible.builtin.command: docker-compose down
|
ansible.builtin.command: docker-compose down
|
||||||
become: True
|
|
||||||
become_user: swagger
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/swagger
|
chdir: /home/swagger
|
||||||
|
|
||||||
- name: Start service
|
- name: Start service
|
||||||
ansible.builtin.command: docker-compose up -d
|
ansible.builtin.command: docker-compose up -d
|
||||||
become: True
|
|
||||||
become_user: swagger
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/swagger
|
chdir: /home/swagger
|
||||||
...
|
...
|
||||||
|
@ -1,22 +1,16 @@
|
|||||||
---
|
---
|
||||||
- name: Update service
|
- name: Update service
|
||||||
ansible.builtin.command: docker-compose pull
|
ansible.builtin.command: docker-compose pull
|
||||||
become: True
|
|
||||||
become_user: service-user
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/service-user
|
chdir: /home/service-user
|
||||||
|
|
||||||
- name: Shut down service
|
- name: Shut down service
|
||||||
ansible.builtin.command: docker-compose down
|
ansible.builtin.command: docker-compose down
|
||||||
become: True
|
|
||||||
become_user: service-user
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/service-user
|
chdir: /home/service-user
|
||||||
|
|
||||||
- name: Start service
|
- name: Start service
|
||||||
ansible.builtin.command: docker-compose up -d
|
ansible.builtin.command: docker-compose up -d
|
||||||
become: True
|
|
||||||
become_user: service-user
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/service-user
|
chdir: /home/service-user
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user