mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
bitwarden
This commit is contained in:
parent
f73bd7e46e
commit
d884e7706b
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
ignore_unreachable: false
|
ignore_unreachable: false
|
||||||
vars:
|
vars:
|
||||||
NEW_IP: 192.168.77.238
|
|
||||||
arch_name: docker_mailu2_data
|
arch_name: docker_mailu2_data
|
||||||
containers:
|
containers:
|
||||||
- nginx-app-1
|
- nginx-app-1
|
||||||
@ -42,12 +41,12 @@
|
|||||||
|
|
||||||
- name: Print the gateway for each host when defined
|
- name: Print the gateway for each host when defined
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "var is {{ NEW_IP }}"
|
msg: "var is {{ destination }}"
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
- name: initialize variables
|
- name: initialize variables
|
||||||
set_fact:
|
set_fact:
|
||||||
regexp: "\\g<1>{{ NEW_IP }}\\3"
|
regexp: "\\g<1>{{ destination }}\\3"
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
@ -61,21 +60,21 @@
|
|||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
|
|
||||||
# - name: Pause for 60 seconds
|
- name: Pause for 60 seconds
|
||||||
# ansible.builtin.pause:
|
ansible.builtin.pause:
|
||||||
# seconds: 60
|
seconds: 60
|
||||||
|
|
||||||
# - name: Set new ruleset
|
- name: Set new ruleset
|
||||||
# command: nvram set vts_rulelist="{{ app_path }}"
|
command: nvram set vts_rulelist="{{ app_path }}"
|
||||||
# when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
# - name: Nvram commit
|
- name: Nvram commit
|
||||||
# command: nvram commit
|
command: nvram commit
|
||||||
# when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
# - name: Restart firewall
|
- name: Restart firewall
|
||||||
# command: service restart_firewall
|
command: service restart_firewall
|
||||||
# when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user