Hello Ansible Community, I am in the process to develop my first collection. Among the requirements is including a number of playbooks. I can make everything work, except for playbooks. The ansible-playbook command can't find the playbooks. Nor can playbooks import them.
It happens even for the last Ansible release 5.9.0, so I must be doing something wrong in my collection. The directory structure: *foo* *+- sysadmin* * +- playbooks* * +- enable_ca.yml* Deployment: ansible-galaxy collection build --force ansible-galaxy collection install foo-sysadmin-1.0.0.tar.gz --force Running: A playbook containing a playbook import: *$ ansible-playbook test_playbook.yml ERROR! Unable to retrieve file contentsCould not find or access '/opt/.../foo.sysadmin.enable_ca.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* Run it directly: *$ ansible-playbook foo.sysadmin.enable_ca.ymlERROR! the playbook: foo.sysadmin.enable_ca.yml could not be found* I was under the impression it was enough to put playbooks in .../foo/sysadmin/playbooks/. Or is it ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d2d60326-06f0-43f1-a172-dd9c77f24ea0n%40googlegroups.com.
