adds ansible check mode and vpn reminder

This commit is contained in:
James Hackett 2022-12-23 14:54:40 +00:00
parent e3cdfb5785
commit a0651f3f5d
6 changed files with 14 additions and 4 deletions

View file

@ -26,3 +26,8 @@
owner: root
group: root
mode: 0644
- name: Reload systemd daemon
become: true
systemd:
daemon_reload: true

View file

@ -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

View file

@ -35,3 +35,8 @@
owner: root
group: root
mode: 0644
- name: Reload systemd daemon
become: true
systemd:
daemon_reload: true

View file

@ -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

View file

@ -28,4 +28,4 @@
- name: Tell user to generate openVPN configuration for users
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."

View file

@ -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