Skip to content

Commit db81091

Browse files
committed
workaround OFED/turbovnc install clash
1 parent 8a0ec9b commit db81091

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

ansible/roles/openondemand/tasks/vnc_compute.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
yum:
1111
name: epel-release
1212

13+
- name: Check /etc/init.d
14+
ansible.builtin.stat:
15+
path: /etc/init.d
16+
register: init_d
17+
18+
- name: Move OFED-installed init scripts
19+
# turbovnc installs chkconfig which symlinks /etc/init.d from /etc/rc.d/init.d
20+
# but OFED has already created that and installed files in it.
21+
# See https://access.redhat.com/solutions/6969215
22+
ansible.builtin.command:
23+
cmd: mv /etc/init.d /etc/init.d.orig
24+
creates: /etc/init.d.orig
25+
when:
26+
- init_d.stat.exists
27+
- not init_d.stat.islnk
28+
1329
- name: Install VNC-related packages
1430
tags: install
1531
dnf:
@@ -19,6 +35,15 @@
1935
- python3.9
2036
- dbus-x11
2137

38+
- name: Replace OFED-installed init scripts
39+
ansible.builtin.copy:
40+
src: /etc/init.d.orig/ # trailing / to get contents
41+
dest: /etc/init.d
42+
remote_src: true
43+
when:
44+
- init_d.stat.exists
45+
- not init_d.stat.islnk
46+
2247
- name: Install Xfce desktop
2348
tags: install
2449
yum:

0 commit comments

Comments
 (0)