{"id":26047645,"url":"https://github.com/kharune/ansible_guacamole_docker","last_synced_at":"2025-03-07T23:12:37.609Z","repository":{"id":280634539,"uuid":"942651343","full_name":"Kharune/ansible_guacamole_docker","owner":"Kharune","description":"Ansible role to deploy Apache Guacamole with self-signed certificate","archived":false,"fork":false,"pushed_at":"2025-03-04T14:15:50.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T14:19:33.588Z","etag":null,"topics":["ansible-role","guacamole-docker","haproxy-docker","self-signed-certificate"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kharune.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-04T12:58:23.000Z","updated_at":"2025-03-04T14:15:53.000Z","dependencies_parsed_at":"2025-03-04T14:29:36.701Z","dependency_job_id":null,"html_url":"https://github.com/Kharune/ansible_guacamole_docker","commit_stats":null,"previous_names":["kharune/ansible_guacamole_docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kharune%2Fansible_guacamole_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kharune%2Fansible_guacamole_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kharune%2Fansible_guacamole_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kharune%2Fansible_guacamole_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kharune","download_url":"https://codeload.github.com/Kharune/ansible_guacamole_docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242473055,"owners_count":20134020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-role","guacamole-docker","haproxy-docker","self-signed-certificate"],"created_at":"2025-03-07T23:12:37.115Z","updated_at":"2025-03-07T23:12:37.597Z","avatar_url":"https://github.com/Kharune.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"🚀 **Ansible Role: Apache Guacamole Docker Deployment with HAProxy \u0026 SSL**\n\n📌 **Overview**\n\nThis Ansible role automates the deployment of Apache Guacamole with HAProxy as a reverse proxy and a self-signed SSL certificate for secure remote access.\n\n✅ **Features**\n\n✔️ Deploys Guacamole using Docker \u0026 Docker Compose\n\n✔️ Sets up MariaDB as the database backend\n\n✔️ Configures HAProxy for load balancing and SSL termination\n\n✔️ Generates a self-signed SSL certificate for HTTPS access\n\n✔️ Initializes the Guacamole database schema\n\n✔️ Ensures all services are running and configured properly\n\n📋 **Prerequisites**\n\n🛠 **Supported Operating Systems (Tested)**\n\nDebian 12+\n\n⚙️ **Required Dependencies**\n\n  Ensure the control machine has :\n  \n    Ansible-core 2.15.13\n  \n    Python 3.9.21\n\n    Paramiko 3.5.1\n  \n    Ansible collection community.docker\n  \n    Ansible collection community.crypto\n  \n  Ensure the target machine has :\n  \n    Internet access (for package downloads)\n  \n    Docker and Docker Compose installed\n\n    Python 3.11.2\n\n🔑 **Privileges**\n\n    Run playbooks as a user with sudo privileges and SSH key-based authentication.\n    \n    In this role, the default user is control.\n\n🚀 **Quick Start Guide**\n\n1️⃣ **Install the Role**\n\nClone this repository or download it:\n\n    git clone https://github.com/Kharune/ansible_guacamole_docker.git\n    cd ansible_guacamole_docker\n\n2️⃣ **Configure Inventory, Playbook, and Ansible Configuration**\n\nBefore running the playbook, ensure the following files are properly configured based on your environment.\n\nInventory Configuration (hosts.yml)\n\n    lab:\n      vars:\n        ansible_python_interpreter: auto_silent\n      hosts:\n        192.168.253.130:22450  # Change this based on your environment\n    preprod:\n      children:\n        lab:\n\nPlaybook Configuration (PB_deploy_guacamole.yml)\n\n    ---\n    - name: Deploy Guacamole with HAProxy \u0026 SSL\n      hosts: preprod  # Change this based on your target group\n      remote_user: control  # Change this based on your user\n      become: true\n      roles:\n        - guacamole_docker_with_https\n\nAnsible Configuration (ansible.cfg)\n\nEnsure your Ansible configuration is set correctly :\n\n    [defaults]\n    inventory=/home/control/ansible_guacamole_docker/hosts.yml  # Change to your inventory file\n    transport=paramiko  # Change if you don't use paramiko\n\n3️⃣ **Run the Playbook**\n\nRun the playbook :\n\n    ansible-playbook PB_deploy_guac_services.yml\n\n⚙️ **Role Variables**\n\nCustomize the role variables by modifying defaults/main.yml :\n\n    # Database Configuration\n    mysql_root_password: \"your_password\"\n    mysql_database: \"guacamole\"\n    mysql_user: \"guacamole\"\n    mysql_password: \"your_password\"\n    \n    # SSL Configuration\n    fqdn: \"guacamole.example.com\"\n    ssl_cert_path: \"/etc/ssl/certs/guacamole.pem\"\n    ssl_key_path: \"/etc/ssl/private/guacamole.key\"\n\n🔒 **SSL \u0026 HAProxy Configuration**\n\nThis role automatically generates a self-signed SSL certificate for HAProxy :\n\n    Certificate Path: /etc/ssl/certs/guacamole.pem\n    \n    Key Path: /etc/ssl/private/guacamole.key\n\nTo use a Let's Encrypt certificate instead :\n\n    Replace the generated certificate with a valid Let's Encrypt cert.\n    \n    Update the HAProxy configuration to point to the new certificate paths.\n\n    File : HAProxy Configuration (haproxy.cfg.j2)\n\nThis role configures HAProxy to :\n\n    Terminate SSL at the proxy\n    \n    Forward traffic to Guacamole\n    \n    Redirect HTTP to HTTPS\n\n🥑 **Demo**\n\n\n\nhttps://github.com/user-attachments/assets/44d221ad-393d-42fe-8988-f01f2b84b1a3\n\n\n\n🥑 **Apache Guacamole default credential : guacadmin/guacadmin**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkharune%2Fansible_guacamole_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkharune%2Fansible_guacamole_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkharune%2Fansible_guacamole_docker/lists"}