Closed anderpups closed 2 months ago
You can override these variables in your playbook specifying the root directory of the filetree_create
output:
After this, filetree_read
will work as you expect.
@ivarmu - Thank you for your response. I met with the team during office hours and they pointed me in the right direction.
Summary
I posted this in the Matrix chat but it was requested that I open an issue.
I am unable to use the filetree_read role to set needed variables for the dispatch role after using the filetree_create role.
Issue Type
Ansible, Collection, Controller details
OS / ENVIRONMENT
RHEL8 for controller. Running playbook from Ubuntu 24.04 desktop
Desired Behavior
I am using the filetree_create role to produce a folder structure with our environment's settings. I thought I would be able to then use the filetree_read role to then read in the variables with the configs prior to using the dispatch role to actually push the config to a new install. It seems though that the filetree_read role requires a different folder structure (like this example). I feel like I am missing something simple.
Actual Behavior
Below is the directory structure created using the filetree_create role.
Below is the playbook I am using:
When I run the playbook though, the filetree_read role looks for directories such as:
The entire console output is here. You can see where it just skips everything since the directory structure is not the same.
Thank you in advance for any direction or help you can provide.