Skip to content

Commit

Permalink
workaround OFED/turbovnc install clash
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Apr 4, 2024
1 parent 8a0ec9b commit db81091
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ansible/roles/openondemand/tasks/vnc_compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@
yum:
name: epel-release

- name: Check /etc/init.d
ansible.builtin.stat:
path: /etc/init.d
register: init_d

- name: Move OFED-installed init scripts
# turbovnc installs chkconfig which symlinks /etc/init.d from /etc/rc.d/init.d
# but OFED has already created that and installed files in it.
# See https://access.redhat.com/solutions/6969215
ansible.builtin.command:
cmd: mv /etc/init.d /etc/init.d.orig
creates: /etc/init.d.orig
when:
- init_d.stat.exists
- not init_d.stat.islnk

- name: Install VNC-related packages
tags: install
dnf:
Expand All @@ -19,6 +35,15 @@
- python3.9
- dbus-x11

- name: Replace OFED-installed init scripts
ansible.builtin.copy:
src: /etc/init.d.orig/ # trailing / to get contents
dest: /etc/init.d
remote_src: true
when:
- init_d.stat.exists
- not init_d.stat.islnk

- name: Install Xfce desktop
tags: install
yum:
Expand Down

0 comments on commit db81091

Please sign in to comment.