Add copy from Local Folder feature

This commit is contained in:
Damien A
2023-12-17 20:06:32 +01:00
parent 596d32402d
commit d40214dc77
3 changed files with 22 additions and 3 deletions

View File

@@ -18,6 +18,7 @@
- git
- tree
- htop
- rsync
state: latest
update_cache: true
@@ -75,6 +76,14 @@
become: yes
when: repo_git_url | length > 0
- name: Synchronize local directory to VM
synchronize:
src: "{{ local_dir_path }}"
dest: "/opt/containerlab/projet/"
recursive: yes
become: yes
when: local_dir_path | length > 0
- name: Copy network images to remote /tmp directory
copy:
src: "{{ item }}"