Skip to content

Commit

Permalink
Merge pull request #44 from roumano/Permit_guacamole_without_guacd
Browse files Browse the repository at this point in the history
Permit guacamole install without guacd binary
  • Loading branch information
roumano authored Jan 11, 2024
2 parents 5b0b025 + 6a5588c commit d91ad85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
- name: kill guacd # noqa no-changed-when
ansible.builtin.command: pkill guacd
become: true
when: guacd_config is defined

- name: restart guacd
ansible.builtin.service:
name: guacd
state: restarted
become: true
when: guacd_config is defined

- name: restart tomcat
ansible.builtin.service:
Expand Down
4 changes: 2 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

- name: install | Checking If Guacamole Server Is Installed
ansible.builtin.stat:
path: /usr/local/sbin/guacd
path: /usr/local/bin/guaclog
register: _guacamole_server_installed

- name: install | Configuring Guacamole Server Build # noqa no-changed-when
ansible.builtin.command: ./configure --with-init-dir=/etc/init.d
ansible.builtin.command: "./configure --with-init-dir=/etc/init.d{% if guacd_config is not defined %} --disable-guacd{% endif %}"
args:
chdir: "{{ guacamole_src_dir + '/guacamole-server-' + guacamole_version }}"
become: true
Expand Down
1 change: 1 addition & 0 deletions tasks/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
enabled: true
state: started
become: true
when: guacd_config is defined

0 comments on commit d91ad85

Please sign in to comment.