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
No related branches found
No related tags found
No related merge requests found
...@@ -36,21 +36,28 @@ ...@@ -36,21 +36,28 @@
become: yes become: yes
tasks: tasks:
- name: Install guacd - name: Check if guacd exists
apt: stat: path=/etc/init.d/guacd
name: guacd register: guacd_status
- name: Change default listening address of guacd - name: Install guacd block
lineinfile: block:
path: /etc/default/guacd - name: Install guacd
regexp: LISTEN_ADDRESS=.* apt:
line: LISTEN_ADDRESS={{ hostvars["man"]["kypo_global_sandbox_ip"] }} name: guacd
- name: Restart guacd.service - name: Change default listening address of guacd
systemd: lineinfile:
state: restarted path: /etc/default/guacd
daemon_reload: yes regexp: LISTEN_ADDRESS=.*
name: guacd 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 - name: NAT on MAN node
hosts: man hosts: man
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment