mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
upt playbook
This commit is contained in:
parent
a39a65400d
commit
5f31a2c5f6
@ -22,22 +22,35 @@
|
|||||||
command: service restart_firewall
|
command: service restart_firewall
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
- name: Stop mailu rasp
|
# - name: Stop mailu rasp
|
||||||
uri:
|
# uri:
|
||||||
url: "http://192.168.77.106:9000/api/stacks/{{ item }}/stop?endpointId=2"
|
# url: "http://192.168.77.106:9000/api/stacks/{{ item }}/stop?endpointId=2"
|
||||||
method: POST
|
# method: POST
|
||||||
body_format: form-urlencoded
|
# body_format: form-urlencoded
|
||||||
return_content: yes
|
# return_content: yes
|
||||||
headers:
|
# headers:
|
||||||
Content-Type: "application/json"
|
# Content-Type: "application/json"
|
||||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
# X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||||
timeout: 60
|
# timeout: 60
|
||||||
ignore_errors: yes
|
# ignore_errors: yes
|
||||||
when: inventory_hostname in groups['nas']
|
# when: inventory_hostname in groups['nas']
|
||||||
|
# loop:
|
||||||
|
# - 130
|
||||||
|
# - 149
|
||||||
|
# #- 140
|
||||||
|
# - 180
|
||||||
|
|
||||||
|
- name: Stop mailu containers
|
||||||
|
command: docker pause {{ item }}
|
||||||
|
when: inventory_hostname in groups['raspberry']
|
||||||
loop:
|
loop:
|
||||||
- 130
|
- mailu2-admin-1
|
||||||
- 149
|
- mailu2-antispam-1
|
||||||
#- 140
|
- mailu2-antivirus-1
|
||||||
- 180
|
- mailu2-fetchmail-1
|
||||||
|
- mailu2-front-1
|
||||||
|
- mailu2-imap-1
|
||||||
|
- mailu2-oletools-1
|
||||||
|
- mailu2-redis-1
|
||||||
|
- mailu2-resolver-1
|
||||||
|
- mailu2-smtp-1
|
Loading…
x
Reference in New Issue
Block a user