Browse Source

only import relevant tags

master
Nicolas Massé 8 years ago
parent
commit
56536e1a2d
  1. 14
      playbooks/provision-global-templates-and-imagestreams.yml

14
playbooks/provision-global-templates-and-imagestreams.yml

@ -83,13 +83,19 @@
command: oc import-image {{ item }} --confirm --scheduled --all -n openshift command: oc import-image {{ item }} --confirm --scheduled --all -n openshift
with_items: '{{ oc_get_is.stdout_lines }}' with_items: '{{ oc_get_is.stdout_lines }}'
- name: Import additional Red Hat image streams - name: Import additional Red Hat image streams (initial import)
command: oc import-image -n openshift {{ item.key }} --from {{ item.value }} --confirm --scheduled --all command: oc import-image -n openshift {{ item.key }} --from {{ item.value }} --confirm --scheduled
with_dict: with_dict:
rhel-atomic: rhel-atomic rhel7-atomic: registry.access.redhat.com/rhel7-atomic:latest
rhel: rhel7.4 rhel7: registry.access.redhat.com/rhel7:latest
when: '(''imagestreams/'' ~ item.key) not in oc_get_is.stdout_lines' when: '(''imagestreams/'' ~ item.key) not in oc_get_is.stdout_lines'
- name: Import additional Red Hat image streams (additional tags)
command: oc tag -n openshift {{ item.value }} {{ item.key }} --scheduled
with_dict:
'rhel7-atomic:7.4': registry.access.redhat.com/rhel7-atomic:7.4
'rhel7:7.4': registry.access.redhat.com/rhel7:7.4
- name: Delete the temporary directory - name: Delete the temporary directory
file: file:
path: '{{ tempfile.path }}' path: '{{ tempfile.path }}'

Loading…
Cancel
Save