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