adds ansible check mode and vpn reminder
This commit is contained in:
parent
e3cdfb5785
commit
a0651f3f5d
6 changed files with 14 additions and 4 deletions
|
@ -26,3 +26,8 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Reload systemd daemon
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: true
|
|
@ -35,7 +35,7 @@
|
|||
state: started
|
||||
when: ansible_check_mode == false
|
||||
|
||||
- name: Check if consul is running
|
||||
- name: Check if consul is running with `consul members`
|
||||
become: true
|
||||
shell: consul members
|
||||
register: consul_members
|
||||
|
|
|
@ -35,3 +35,8 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Reload systemd daemon
|
||||
become: true
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
- name: Check nomad members
|
||||
become: true
|
||||
shell: nomad members
|
||||
shell: nomad server members
|
||||
register: nomad_members
|
||||
when: ansible_check_mode == false
|
||||
|
||||
|
|
|
@ -30,4 +30,4 @@ performance {
|
|||
}
|
||||
|
||||
# TODO: change once DNS is running on a host
|
||||
recursors = [] # adds DNS forwarding for non-`.consul` domains
|
||||
recursors = ["10.10.0.1"] # adds DNS forwarding for non-`.consul` domains
|
||||
|
|
Loading…
Reference in a new issue