Skip to content

Workaround turbovnc repo bug #338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ansible/portal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,17 @@
become: yes
gather_facts: yes
tasks:
# Temporary workaround for https://github.com/TurboVNC/turbovnc/issues/387
# Assumes that if the repo exists, host is using a fat image, in which case
# vnc_compute.yml has already run
- name: Check for TurboVNC repo
stat:
path: /etc/yum.repos.d/TurboVNC.repo
register: _turbovnc_repo
- import_role:
name: openondemand
tasks_from: vnc_compute.yml
when: not _turbovnc_repo.stat.exists

- hosts: openondemand_jupyter
tags:
Expand Down
2 changes: 2 additions & 0 deletions ansible/site.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---

- import_playbook: turbovnc_bug.yml

- name: Run pre.yml hook
vars:
# hostvars not available here, so have to recalculate environment root:
Expand Down
19 changes: 19 additions & 0 deletions ansible/turbovnc_bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Temporary workaround for https://github.com/TurboVNC/turbovnc/issues/387

- hosts: all
become: yes
gather_facts: no
tasks:
- name: Check for TurboVNC repo
stat:
path: /etc/yum.repos.d/TurboVNC.repo
register: _turbovnc_repo
- name: Disable TurboVNC repo
community.general.ini_file:
path: /etc/yum.repos.d/TurboVNC.repo
section: TurboVNC
option: enabled
value: '0'
no_extra_spaces: true
create: false
when: _turbovnc_repo.stat.exists