do operations as root
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2022-07-25 22:29:22 +02:00
parent e82e805d86
commit f870c5ec2f
3 changed files with 0 additions and 18 deletions

View File

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

View File

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

View File

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