This commit is contained in:
parent
e82e805d86
commit
f870c5ec2f
@ -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
|
||||
...
|
||||
|
@ -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
|
||||
...
|
||||
|
@ -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
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user