I am building an Ansible playbook to create a new project, add a user role, work with security groups, and other new-project tasks. The playbook creates a project after asking for some input and would need to continue working on that project through the remaining tasks.
The os_security_group_rule module documentation states the project name or ID should either be in the auth dictionary or in the cloud file. The cloud file isn’t feasible unless I wrap the entire playbook in a Python script.
This may be due to my own ignorance about Ansible - is there a better way to add the project name or project ID to the playbook, such as ‘project_name: {{ variable }}’ ? Or is this module not coded to pass this information in as an option?
The module documentation has no such option directly.
If there is no such option, can I add the project_name to auth: without the other dictionary objects since I use a cloud file?