This commit is contained in:
parent
f870c5ec2f
commit
d0efc38c6a
@ -1,16 +1,13 @@
|
|||||||
---
|
---
|
||||||
- name: Update service
|
- ansible.builtin.command: docker-compose pull
|
||||||
ansible.builtin.command: docker-compose pull
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/drone
|
chdir: /home/drone
|
||||||
|
|
||||||
- name: Shut down service
|
- ansible.builtin.command: docker-compose down
|
||||||
ansible.builtin.command: docker-compose down
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/drone
|
chdir: /home/drone
|
||||||
|
|
||||||
- name: Start service
|
- ansible.builtin.command: docker-compose up -d
|
||||||
ansible.builtin.command: docker-compose up -d
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/drone
|
chdir: /home/drone
|
||||||
...
|
...
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Copy docker-compose configuration
|
- ansible.builtin.copy:
|
||||||
ansible.builtin.copy:
|
|
||||||
src: docker-compose.yaml
|
src: docker-compose.yaml
|
||||||
dest: /home/service-user/docker-compose.yaml
|
dest: /home/service-user/docker-compose.yaml
|
||||||
owner: service-user
|
owner: service-user
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Copy docker-compose configuration
|
- ansible.builtin.copy:
|
||||||
ansible.builtin.copy:
|
|
||||||
src: docker-compose.yaml
|
src: docker-compose.yaml
|
||||||
dest: /home/service-user/docker-compose.yaml
|
dest: /home/service-user/docker-compose.yaml
|
||||||
owner: service-user
|
owner: service-user
|
||||||
|
@ -1,30 +1,26 @@
|
|||||||
---
|
---
|
||||||
- name: Copy prometheus configuration
|
- ansible.builtin.copy:
|
||||||
ansible.builtin.copy:
|
|
||||||
src: prometheus.yml
|
src: prometheus.yml
|
||||||
dest: /home/service-user/prometheus/prometheus.yml
|
dest: /home/service-user/prometheus/prometheus.yml
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: Copy alertmanager configuration
|
- ansible.builtin.copy:
|
||||||
ansible.builtin.copy:
|
|
||||||
src: alertmanager.yml
|
src: alertmanager.yml
|
||||||
dest: /home/service-user/alertmanager/config.yml
|
dest: /home/service-user/alertmanager/config.yml
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: Copy alert rules
|
- ansible.builtin.copy:
|
||||||
ansible.builtin.copy:
|
|
||||||
src: alert.rules
|
src: alert.rules
|
||||||
dest: /home/service-user/prometheus/alert.rules
|
dest: /home/service-user/prometheus/alert.rules
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: Copy docker-compose configuration
|
- ansible.builtin.copy:
|
||||||
ansible.builtin.copy:
|
|
||||||
src: docker-compose.yaml
|
src: docker-compose.yaml
|
||||||
dest: /home/service-user/docker-compose.yaml
|
dest: /home/service-user/docker-compose.yaml
|
||||||
owner: service-user
|
owner: service-user
|
||||||
|
@ -1,24 +1,20 @@
|
|||||||
---
|
---
|
||||||
- name: Copy docker-compose configuration
|
- ansible.builtin.copy:
|
||||||
ansible.builtin.copy:
|
|
||||||
src: docker-compose.yml
|
src: docker-compose.yml
|
||||||
dest: /home/swagger/docker-compose.yml
|
dest: /home/swagger/docker-compose.yml
|
||||||
owner: swagger
|
owner: swagger
|
||||||
group: swagger
|
group: swagger
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: Update service
|
- ansible.builtin.command: docker-compose pull
|
||||||
ansible.builtin.command: docker-compose pull
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/swagger
|
chdir: /home/swagger
|
||||||
|
|
||||||
- name: Shut down service
|
- ansible.builtin.command: docker-compose down
|
||||||
ansible.builtin.command: docker-compose down
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/swagger
|
chdir: /home/swagger
|
||||||
|
|
||||||
- name: Start service
|
- ansible.builtin.command: docker-compose up -d
|
||||||
ansible.builtin.command: docker-compose up -d
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/swagger
|
chdir: /home/swagger
|
||||||
...
|
...
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
---
|
---
|
||||||
- name: Update service
|
- ansible.builtin.command: docker-compose pull
|
||||||
ansible.builtin.command: docker-compose pull
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/service-user
|
chdir: /home/service-user
|
||||||
|
|
||||||
- name: Shut down service
|
- ansible.builtin.command: docker-compose down
|
||||||
ansible.builtin.command: docker-compose down
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/service-user
|
chdir: /home/service-user
|
||||||
|
|
||||||
- name: Start service
|
- ansible.builtin.command: docker-compose up -d
|
||||||
ansible.builtin.command: docker-compose up -d
|
|
||||||
args:
|
args:
|
||||||
chdir: /home/service-user
|
chdir: /home/service-user
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user