Created role docker-compose and refactored attendize, akauntin, openproject

This commit is contained in:
2023-12-30 15:22:18 +01:00
parent 3181ce3def
commit f70a7690a8
18 changed files with 122 additions and 146 deletions

View File

@@ -1,4 +1,6 @@
# Role: docker-attendize
@TODO @ATTENTION THIS ROLE IS WORK IN PROGRESS
# Role: docker-attendize (WIP)
This Ansible role sets up Attendize, an open-source ticket selling and event management platform.

View File

@@ -1,2 +1,2 @@
dependencies:
- nginx-docker-reverse-proxy
- docker-compose

View File

@@ -20,32 +20,5 @@
# domain: "{{ mail_interface_domain }}"
# notify: restart nginx
- name: register directory
stat:
path: "{{docker_compose_instance_directory}}"
register: docker_compose_instance_directory_register
- name: checkout repository
ansible.builtin.shell: git checkout .
become: true
args:
chdir: "{{docker_compose_instance_directory}}"
when: docker_compose_instance_directory_register.stat.exists
- name: checkout Attendize repository
ansible.builtin.git:
repo: "https://github.com/Attendize/Attendize.git"
dest: "{{docker_compose_instance_directory}}"
version: master
become: true
- name: Warn if repo is not reachable
debug:
msg: "Warning: Repository is not reachable."
when: git_result.failed
- name: create docker-compose.yml file from template
template:
src: docker-compose.yml.j2
dest: "{{docker_compose_instance_directory}}/docker-compose.yml"
mode: 0644
- name: "include tasks update-repository-with-docker-compose.yml"
include_tasks: update-repository-with-docker-compose.yml

View File

@@ -1,8 +1,12 @@
---
docker_compose_project_name: "attendize"
docker_compose_instance_directory: "{{path_docker_compose_instances}}attendize/"
docker_compose_file_path: "{{docker_compose_instance_directory}}docker-compose.yml"
docker_compose_backup_path: "/tmp/attendize-docker-compose-backup.yml"
mail_interface_domain: "mail.{{domain}}"
database_instance: "attendize"
database_instance: "{{docker_compose_project_name}}"
database_host: "database"
database_databasename: "{{database_instance}}"
database_username: "{{database_instance}}"
database_password: "{{attendize_database_password}}"
repository_address: "https://github.com/Attendize/Attendize.git"