Update Doc and Variables
This commit is contained in:
6
ansible/install_containerlab.yml
Normal file → Executable file
6
ansible/install_containerlab.yml
Normal file → Executable file
@@ -92,10 +92,4 @@
|
||||
dest: "/tmp/{{ item | basename }}"
|
||||
with_fileglob:
|
||||
- "../network_images/*"
|
||||
when: inventory_hostname in groups['all']
|
||||
|
||||
- name: Import network image to Docker with specific tag
|
||||
command:
|
||||
cmd: "docker import /tmp/{{ item | basename }} {{ (item | basename | regex_replace('^(\\D+)-.*-(.*)\\.tar\\.xz', '\\1')) | lower }}:{{ item | basename | regex_replace('^(\\D+)-.*-(.*)\\.tar\\.xz', '\\2') }}"
|
||||
loop: "{{ query('fileglob', '../network_images/*.tar.xz') }}"
|
||||
when: inventory_hostname in groups['all']
|
||||
Reference in New Issue
Block a user