Commit 7b43ac7
committed
playbooks: guestfs: fix import_tasks file path
guestfs main task YAML file import_tasks for intalling dependencies
with:
file: "{{ role_path }}/tasks/install-deps/main.yml"
That file also import_tasks using distro specific tasks. This file path
needs to use the path from the role tasks/ path and not from where the
file is located.
Logs:
make bringup
...
ansible-playbook -vv \
--inventory localhost, \
playbooks/guestfs.yml \
--extra-vars=@./extra_vars.yaml \
--tags install-deps
ansible-playbook [core 2.19.0b2]
config file = /scratch/dagomez/linux-kdevops/kdevops/ansible.cfg
configured module search path =
['/home/dagomez/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /home/dagomez/.ansible/collections:/usr
/share/ansible/collections
executable location = /usr/bin/ansible-playbook
python version = 3.13.3 (main, Apr 10 2025, 21:38:51) [GCC 14.2.0]
(/usr/bin/python3)
jinja version = 3.1.6
pyyaml version = 6.0.2 (with libyaml v0.2.5)
Using /scratch/dagomez/linux-kdevops/kdevops/ansible.cfg as config file
statically imported:
/scratch/dagomez/linux-kdevops/kdevops/playbooks/roles/guestfs/tasks/
install-deps/main.yml
[ERROR]: Unable to retrieve file contents.
Could not find or access
'/scratch/dagomez/linux-kdevops/kdevops/playbooks/debian/main.yml' on
the Ansible Controller.
If you are using a module and expect the file to exist on the remote,
see the remote_src option: [Errno 2] No such file or directory:
'/scratch/dagomez/linux-kdevops/kdevops/playbooks/debian/main.yml
Signed-off-by: Daniel Gomez <[email protected]>1 parent da2fa04 commit 7b43ac7
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
0 commit comments