Sha256: b19040fc0a98d76fb2d15f56811322fc9971813d72396282c1c112828e5961f8

Contents?: true

Size: 527 Bytes

Versions: 34

Compression:

Stored size: 527 Bytes

Contents

---
# tasks file for qb.git_check_clean

- name: >
    get git status for repo {{ git_check_clean_dir }}
  shell: git status --porcelain 2>/dev/null
  args:
    chdir: "{{ git_check_clean_dir }}"
  register: git_check_clean_status
  changed_when: false

- name: >
    fail if the repo has any untracked or modified files
  fail:
    msg: >
      repo at {{ git_check_clean_dir }} can not have any untracked or
      modified files, please commit or stash and retry.
  when: (git_check_clean_status.stdout_lines | length) != 0

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
qb-0.3.1 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.88 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.87 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.86 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.85 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.84 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.83 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.82 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.81 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.80 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.79 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.78 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.77 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.76 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.75 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.74 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.73 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.72 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.71 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.70 roles/qb.git_check_clean/tasks/main.yml