Sha256: 959927fa94b7c3e53bfd62e7fffef0808cb794fac214bcf5848de41b1f287174
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
- name: Check if path exists stat: path={{ be_app_path }} register: be_app_path_stat tags: [be_deploy] - name: Check if there are commited changes on {{ be_app_branch }} remote_user: "{{ deployer_user.name }}" command: bash -lc "git fetch origin && git diff --name-only origin/{{ be_app_branch }}" args: chdir: "{{be_app_path}}" register: changes_on_remote when: be_app_path_stat.stat.exists tags: [be_deploy] - name: Inform User if there are no changes debug: msg={{no_changes_found_error.split('\n')}} when: be_app_path_stat.stat.exists and changes_on_remote.stdout_lines == [] tags: [be_deploy] - name: Check out application sudo: false remote_user: "{{ deployer_user.name }}" git: dest={{ be_app_path }} repo={{ be_app_repo }} version={{ be_app_branch }} accept_hostkey=true force=yes register: app_checkout tags: [be_deploy] - name: check that secrets is ignored shell: cat {{ be_app_path }}/.gitignore | grep {{ item }} with_items: - config/secrets.yml register: secrets_ignore_check ignore_errors: true tags: [be_deploy] - name: ignore secrets shell: /bin/bash -c 'echo "config/secrets.yml" > {{ be_app_path }}/.git/info/exclude' when: secrets_ignore_check|failed tags: [be_deploy]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taperole-1.7.1 | roles/backend_checkout/tasks/main.yml |
taperole-1.7.0 | roles/backend_checkout/tasks/main.yml |