Solved bugs and removed debug messages if repository is not reachable

This commit is contained in:
2024-01-05 11:08:09 +01:00
parent 5ad6bf7e34
commit d24b0dc839
10 changed files with 3 additions and 67 deletions

View File

@@ -14,17 +14,12 @@
state: directory
mode: 0755
- 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
ignore_errors: true
- name: pull docker repository
git:
@@ -33,14 +28,8 @@
update: yes
notify: recreate discourse
become: true
register: git_result
ignore_errors: true
- name: Warn if repo is not reachable
debug:
msg: "Warning: Repository is not reachable."
when: git_result.failed
- name: set chmod 700 for {{docker_compose_instance_directory}}containers
ansible.builtin.file:
path: "{{docker_compose_instance_directory}}/containers"

View File

@@ -1,4 +1,4 @@
docker_compose_project_name: "attendize"
docker_compose_project_name: "discourse"
database_password: "{{ baserow_database_password }}"
database_version: "{{ baserow_database_version | default(postgres_default_version) }}"
database_type: "postgres"