mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Solved bugs and removed debug messages if repository is not reachable
This commit is contained in:
@@ -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"
|
||||
|
@@ -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"
|
Reference in New Issue
Block a user