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.1.69 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.68 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.67 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.66 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.65 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.64 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.63 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.62 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.61 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.60 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.59 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.58 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.57 roles/qb.git_check_clean/tasks/main.yml
qb-0.1.56 roles/qb.git_check_clean/tasks/main.yml