Update Doc and Variables

This commit is contained in:
Damien A
2024-01-02 13:15:29 +01:00
parent 00ee8e73d1
commit fb2e5422c2
10 changed files with 8 additions and 59 deletions

6
ansible/install_containerlab.yml Normal file → Executable file
View 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']