Skip to content

Commit d606a45

Browse files
committed
fix nhc mid-upgrade
1 parent c9ca0d2 commit d606a45

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

ansible/roles/nhc/tasks/boot.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
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-
91
- name: Copy stored NHC configuration to active location
102
ansible.builtin.copy:
113
remote_src: true

ansible/roles/nhc/tasks/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11

22
- name: Ensure NHC configuration directory exists
3+
# When running site.yml after login/control upgrade, nhc group might be
4+
# enabled in repo, but as the compute nodes have not yet been upgraded they
5+
# do not have the package and hence this directory
36
ansible.builtin.file:
47
path: /etc/nhc
58
state: directory
9+
# to match nhc-ohpc install:
610
owner: root
711
group: root
8-
mode: u=rwX,go= # HealthCheckProgram is run by root
12+
mode: u=rwX,go=
913

1014
- name: Template out NHC configuration
1115
ansible.builtin.template:
1216
src: "{{ nhc_config_template }}"
1317
dest: /etc/nhc/nhc.conf
1418
owner: root
1519
group: root
16-
mode: u=rw,go=
20+
mode: u=rw,go= # HealthChecProgram is run by root

0 commit comments

Comments
 (0)