2018-11-19 22:58:06 +00:00
|
|
|
---
|
|
|
|
- name: Create Guacamole directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
2020-01-25 00:24:00 +00:00
|
|
|
- "{{ guacamole_data_directory }}/config"
|
2018-11-19 22:58:06 +00:00
|
|
|
|
2020-01-25 00:24:00 +00:00
|
|
|
- name: Remove Old Guacamole Mysql Docker Container
|
2018-11-19 22:58:06 +00:00
|
|
|
docker_container:
|
|
|
|
name: guacamole-mysql
|
2020-01-25 00:24:00 +00:00
|
|
|
state: absent
|
|
|
|
keep_volumes: true
|
2018-11-19 22:58:06 +00:00
|
|
|
|
2020-01-25 00:24:00 +00:00
|
|
|
- name: Remove Old Guacamole guacd Docker Container
|
2018-11-19 22:58:06 +00:00
|
|
|
docker_container:
|
|
|
|
name: guacamole-guacd
|
2020-01-25 00:24:00 +00:00
|
|
|
state: absent
|
|
|
|
keep_volumes: true
|
|
|
|
|
|
|
|
- name: Remove old Guacamole directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
with_items:
|
|
|
|
- "{{ guacamole_data_directory }}/mysql"
|
|
|
|
|
|
|
|
# docker run -v /home/david/.guac:/config:rw -p 8080:8080 oznu/guacamole
|
2018-11-19 22:58:06 +00:00
|
|
|
|
2020-01-25 00:24:00 +00:00
|
|
|
|
|
|
|
- name: Guacamole Container
|
2018-11-19 22:58:06 +00:00
|
|
|
docker_container:
|
|
|
|
name: guacamole
|
2020-01-25 00:24:00 +00:00
|
|
|
image: "oznu/guacamole"
|
2018-11-19 22:58:06 +00:00
|
|
|
pull: true
|
2020-01-25 00:24:00 +00:00
|
|
|
volumes:
|
|
|
|
- "{{ guacamole_data_directory }}/config:/config:rw"
|
2018-11-19 22:58:06 +00:00
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ guacamole_port }}:8080"
|
2019-04-11 22:03:11 +00:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
2018-11-25 11:07:44 +00:00
|
|
|
labels:
|
|
|
|
traefik.backend: "guacamole"
|
|
|
|
traefik.frontend.rule: "Host:guacamole.{{ ansible_nas_domain }}"
|
2019-04-11 22:03:11 +00:00
|
|
|
traefik.enable: "{{ guacamole_available_externally }}"
|
2020-01-25 00:24:00 +00:00
|
|
|
traefik.port: "8080"
|
|
|
|
|
|
|
|
- name: Restart Guacamole Container
|
|
|
|
docker_container:
|
|
|
|
name: guacamole
|
|
|
|
image: "oznu/guacamole"
|
|
|
|
restart: true
|