Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
fixed the atmo_check_novnc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
edwins committed Aug 18, 2020
1 parent 2dcbe35 commit 1fe56e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ansible/playbooks/utils/atmo_check_novnc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- name: Playbook to fail when VNC is not running
hosts: all
roles:
- { role: atmo-check-novnc, when: SETUP_NOVNC is defined and SETUP_NOVNC == true }
- { role: atmo-check-novnc, when: SETUP_GUACAMOLE is defined and SETUP_GUACAMOLE == true }
5 changes: 1 addition & 4 deletions ansible/roles/atmo-check-novnc/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
- x

- name: check to see if VNC server is running
shell: /bin/ps aux | /bin/grep "/usr/bin/Xvnc-core :1 -auth /home/{{ ATMOUSERNAME }}/" | /bin/grep -v grep
ignore_errors: yes
failed_when: False
shell: /bin/ps aux | /bin/grep "/usr/bin/Xvnc-core :5 -auth /home/{{ ATMOUSERNAME }}/" | /bin/grep -v grep
register: vnc_state
tags:
- vnc
Expand All @@ -52,4 +50,3 @@
tags:
- vnc
- check-vnc

0 comments on commit 1fe56e8

Please sign in to comment.