Przeglądaj źródła

Rename var

pull/2217/head
ikkemaniac 3 lat temu
rodzic
commit
678dfc6dc3
2 zmienionych plików z 4 dodań i 4 usunięć
  1. +1
    -1
      roles/matrix-base/defaults/main.yml
  2. +3
    -3
      roles/matrix-base/tasks/setup_matrix_base.yml

+ 1
- 1
roles/matrix-base/defaults/main.yml Wyświetl plik

@@ -301,4 +301,4 @@ run_stop: true


# Saves the git hash in a file called git_hash.yml # Saves the git hash in a file called git_hash.yml
# Set this to false if GIT is not installed on the local system (the system where the ansible command is run on) # Set this to false if GIT is not installed on the local system (the system where the ansible command is run on)
git_save_hash: true
matrix_playbook_commit_hash_preservation_enabled: true

+ 3
- 3
roles/matrix-base/tasks/setup_matrix_base.yml Wyświetl plik

@@ -60,17 +60,17 @@
ansible.builtin.debug: ansible.builtin.debug:
msg: >- msg: >-
Couldn't find GIT on the local machine. Continuing without saving the GIT hash. Couldn't find GIT on the local machine. Continuing without saving the GIT hash.
You can disable saving the GIT hash by setting 'git_save_hash: false' in vars.yml
You can disable saving the GIT hash by setting 'matrix_playbook_commit_hash_preservation_enabled: false' in vars.yml
when: "git_describe.stderr.find('not found') != -1" when: "git_describe.stderr.find('not found') != -1"


- name: GIT hash error - name: GIT hash error
ansible.builtin.fail: ansible.builtin.fail:
msg: >- msg: >-
Error when trying to get the GIT hash. Error when trying to get the GIT hash.
You can disable saving the GIT hash by setting 'git_save_hash: false' in vars.yml
You can disable saving the GIT hash by setting 'matrix_playbook_commit_hash_preservation_enabled: false' in vars.yml
when: "git_describe.stderr.find('not found') == -1" when: "git_describe.stderr.find('not found') == -1"


when: "matrix_vars_yml_snapshotting_enabled|bool and git_save_hash|bool"
when: "matrix_vars_yml_snapshotting_enabled|bool and matrix_playbook_commit_hash_preservation_enabled|bool"


- name: Ensure Matrix network is created in Docker - name: Ensure Matrix network is created in Docker
community.docker.docker_network: community.docker.docker_network:


Ładowanie…
Anuluj
Zapisz