How to pass playbook tags to ansible-container?
I created playbooks with tags.
I want to use ansible-container to test my playbooks.
According to the Ansible documentation on
it is possible to add playbook parameters, but it doesn’t work.
ansible-container build -- --tags "pre-install, install"
I get the following error:
ansible-container_1 | ERROR! the playbook: [–tags, could not be found
ansible_ansible-container_1 exited with code 1
One Solution collect form web for “How to pass playbook tags to ansible-container?”
Remove the space between tags:
--tags 'pre-install,install' instead of
--tags 'pre-install, install'