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
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Reload systemd daemon
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
|
daemon_reload: true
|
|
@ -35,7 +35,7 @@
|
||||||
state: started
|
state: started
|
||||||
when: ansible_check_mode == false
|
when: ansible_check_mode == false
|
||||||
|
|
||||||
- name: Check if consul is running
|
- name: Check if consul is running with `consul members`
|
||||||
become: true
|
become: true
|
||||||
shell: consul members
|
shell: consul members
|
||||||
register: consul_members
|
register: consul_members
|
||||||
|
|
|
@ -35,3 +35,8 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Reload systemd daemon
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
|
daemon_reload: true
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
- name: Check nomad members
|
- name: Check nomad members
|
||||||
become: true
|
become: true
|
||||||
shell: nomad members
|
shell: nomad server members
|
||||||
register: nomad_members
|
register: nomad_members
|
||||||
when: ansible_check_mode == false
|
when: ansible_check_mode == false
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,4 @@
|
||||||
|
|
||||||
- name: Tell user to generate openVPN configuration for users
|
- name: Tell user to generate openVPN configuration for users
|
||||||
debug:
|
debug:
|
||||||
msg: "Please generate openVPN configuration for users: {{ task_result.results | map(attribute='item') | map(attribute='user') | list | join(', ') }}. See https://docs.redbrick.dcu.ie/aperture/vpn/ for more information."
|
msg: "Please generate openVPN configuration for users: {{ task_result.results | map(attribute='item') | map(attribute='user') | list | join(', ') }}. See https://docs.redbrick.dcu.ie/aperture/vpn/ for more information."
|
||||||
|
|
|
@ -30,4 +30,4 @@ performance {
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: change once DNS is running on a host
|
# 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