Merge pull request #985 from rutsky/check-mode-for-shell-commands

set "check_mode: on" for read-only "shell" steps that registers result
This commit is contained in:
Matthew Mosesohn
2017-02-15 17:53:41 +03:00
committed by GitHub
12 changed files with 20 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
{{ docker_bin_dir }}/docker images -q | xargs {{ docker_bin_dir }}/docker inspect -f "{{ '{{' }} .RepoTags {{ '}}' }},{{ '{{' }} .RepoDigests {{ '}}' }}"
register: docker_images_raw
failed_when: false
check_mode: no
when: not download_always_pull|bool
- set_fact: docker_images="{{docker_images_raw.stdout|regex_replace('\[|\]|\\n]','')|regex_replace('\s',',')}}"