Optimized and refactored portfolio for flock.town

This commit is contained in:
2025-02-19 16:26:32 +01:00
parent 0c7af2ce89
commit e10deb9e54
24 changed files with 587 additions and 103 deletions

View File

@@ -17,5 +17,5 @@
- name: rebuild discourse
command:
cmd: "./launcher rebuild {{applications.discourse.container}}"
chdir: "{{discourse_repository_directory}}"
chdir: "{{docker_repository_directory }}"
listen: recreate discourse

View File

@@ -32,15 +32,15 @@
- name: pull docker repository
git:
repo: "https://github.com/discourse/discourse_docker.git"
dest: "{{discourse_repository_directory}}"
dest: "{{docker_repository_directory }}"
update: yes
notify: recreate discourse
become: true
ignore_errors: true
- name: set chmod 700 for {{discourse_repository_directory}}containers
- name: set chmod 700 for {{docker_repository_directory }}containers
ansible.builtin.file:
path: "{{discourse_repository_directory}}/containers"
path: "{{docker_repository_directory }}/containers"
mode: '700'
state: directory
@@ -53,7 +53,7 @@
- name: "destroy container discourse_application"
command:
cmd: "./launcher destroy discourse_application"
chdir: "{{discourse_repository_directory}}"
chdir: "{{docker_repository_directory }}"
ignore_errors: true
notify: recreate discourse
when: mode_reset | bool

View File

@@ -1,5 +1,5 @@
application_id: "discourse"
database_password: "{{ applications.discourse.database_password }}"
database_type: "postgres"
discourse_repository_directory: "{{docker_compose.directories.services}}{{applications.discourse.repository}}/"
discourse_application_yml_destination: "{{discourse_repository_directory}}containers/{{applications.discourse.container}}.yml"
docker_repository_directory : "{{docker_compose.directories.services}}{{applications.discourse.repository}}/"
discourse_application_yml_destination: "{{docker_repository_directory }}containers/{{applications.discourse.container}}.yml"