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

View File

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

View File

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