Page MenuHomePhorge

push-local-images.yaml
No OneTemporary

Authored By
Unknown
Size
827 B
Referenced Files
None
Subscribers
None

push-local-images.yaml

- name: Configure KVM
hosts: infrastructure_nodes:worker_nodes
gather_facts: False
roles:
- kvm
# We have to run it with serial=1, otherwise it's not executed per host
- name: Update hosts
hosts: infrastructure_nodes:worker_nodes
gather_facts: False
serial: 1
tasks:
- name: Add a host alias so we can connect to the discovered vm ip
ansible.builtin.add_host:
hostname: '{{ inventory_hostname }}'
ansible_host: '{{ vm_ip.stdout }}'
- name: Push local images to local registry
hosts: localhost
gather_facts: False
tasks:
- ansible.builtin.set_fact:
primary_ip: "{{ hostvars[groups['infrastructure_nodes'][0]].ansible_host }}"
- ansible.builtin.shell:
cmd: env PUSH_ARGS="--tls-verify=false" REGISTRY="{{ primary_ip }}:5001" ../../../build/publish.sh

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 2:03 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18821522
Default Alt Text
push-local-images.yaml (827 B)

Event Timeline