Skip to content
Snippets Groups Projects
Commit f4aea978 authored by Juraj Paluba's avatar Juraj Paluba
Browse files

Merge branch...

Merge branch '27-add-an-option-to-skip-guacamole-installation-if-the-guacamole-service-is-already-running-but-was' into 'master'

Resolve "Add an option to skip guacamole installation if the guacamole service is already running but was not installed with apt-get"

Closes #27

See merge request muni-kypo-crp/backend-python/ansible-networking-stage/kypo-ansible-stage-one!27
parents 0cfab07c 18fb2d2c
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment