Skip to content
Snippets Groups Projects
Commit 18fb2d2c authored by Michal Urban's avatar Michal Urban Committed by Juraj Paluba
Browse files

Resolve "Add an option to skip guacamole installation if the guacamole service...

Resolve "Add an option to skip guacamole installation if the guacamole service is already running but was not installed with apt-get"
parent 0cfab07c
Branches
Tags
No related merge requests found
......@@ -36,21 +36,28 @@
become: yes
tasks:
- name: Install guacd
apt:
name: guacd
- name: Change default listening address of guacd
lineinfile:
path: /etc/default/guacd
regexp: LISTEN_ADDRESS=.*
line: LISTEN_ADDRESS={{ hostvars["man"]["kypo_global_sandbox_ip"] }}
- name: Restart guacd.service
systemd:
state: restarted
daemon_reload: yes
name: guacd
- name: Check if guacd exists
stat: path=/etc/init.d/guacd
register: guacd_status
- name: Install guacd block
block:
- name: Install guacd
apt:
name: guacd
- name: Change default listening address of guacd
lineinfile:
path: /etc/default/guacd
regexp: LISTEN_ADDRESS=.*
line: LISTEN_ADDRESS={{ hostvars["man"]["kypo_global_sandbox_ip"] }}
- name: Restart guacd.service
systemd:
state: restarted
daemon_reload: yes
name: guacd
when: not guacd_status.stat.exists
- name: NAT on MAN node
hosts: man
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment