Skip to content

Commit 8bf8d04

Browse files
committed
fix NHC configuration directory
1 parent f71fc6e commit 8bf8d04

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

ansible/roles/nhc/tasks/boot.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
- name: Ensure NHC configuration directory exists
2+
ansible.builtin.file:
3+
path: /etc/nhc
4+
state: directory
5+
owner: root
6+
group: root
7+
mode: u=rwX,go= # HealthCheckProgram is run by root
8+
19
- name: Copy stored NHC configuration to active location
210
ansible.builtin.copy:
311
remote_src: true
412
src: "/var/tmp/cluster/hostconfig/{{ ansible_hostname }}/nhc.conf"
513
dest: /etc/nhc/nhc.conf
614
owner: root
715
group: root
8-
mode: u=rw,go= # HealthCheckProgram is run by root
16+
mode: u=rw,go=

ansible/roles/nhc/tasks/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11

2+
- name: Ensure NHC configuration directory exists
3+
ansible.builtin.file:
4+
path: /etc/nhc
5+
state: directory
6+
owner: root
7+
group: root
8+
mode: u=rwX,go= # HealthCheckProgram is run by root
9+
210
- name: Template out NHC configuration
311
ansible.builtin.template:
412
src: "{{ nhc_config_template }}"
513
dest: /etc/nhc/nhc.conf
614
owner: root
715
group: root
8-
mode: u=rw,go= # HealthCheckProgram is run by root
16+
mode: u=rw,go=

0 commit comments

Comments
 (0)