Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make installation of guacd a config option. #60

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ guacamole_openid:
redirect-uri: https://remote.xxx.xx/guacamole
```

### guacd Configuration

guacd is the native server-side proxy used by the Apache Guacamole web application. If you wish to deploy Guacamole, or an application using the Guacamole core APIs, you will need a copy of guacd running.

guacd is installed by default. To disable it, set `guacd_config.install` to `false`:

```
guacd_config:
install: false
```

## Dependencies

## Example Playbook
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,6 @@ guacamole_users: []
# Define version to install
# 0.9.13-incubating | 0.9.14 | 1.0.0 | 1.1.0
guacamole_version: 1.1.0

guacd_config:
install: true
4 changes: 2 additions & 2 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
- name: kill guacd # noqa no-changed-when
ansible.builtin.command: pkill guacd
become: true
when: guacd_config is defined
when: guacd_config.install

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

- name: restart tomcat
ansible.builtin.service:
Expand Down
2 changes: 1 addition & 1 deletion tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
notify:
- kill guacd
- restart guacd
when: guacd_config is defined
when: guacd_config.install

- name: config | Configuring guacamole.properties
ansible.builtin.template:
Expand Down Expand Up @@ -150,7 +150,7 @@

# Fix ansible-playbook failed issue
# "A MySQL module is required: for Python 2.7 either PyMySQL, or MySQL-python, or for Python 3.X mysqlclient or PyMySQL.
- name: Install Python 3.X mysqlclient

Check failure on line 153 in tasks/config.yml

View workflow job for this annotation

GitHub Actions / build (ubuntu1804, 3.9)

fqcn[action-core]

Use FQCN for builtin module actions (package).

Check failure on line 153 in tasks/config.yml

View workflow job for this annotation

GitHub Actions / build (ubuntu2004, 3.9)

fqcn[action-core]

Use FQCN for builtin module actions (package).
package:
name: python3-mysqldb
become: true
Expand Down
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
register: _guacamole_server_installed

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