We’ve seen what we’d classify as odd behavior when using import_role with roles that have dependencies defined under the meta directory.
The version of Ansible we are running is 2.9.10.
We have a few roles setup as follows
- base_role
- Does some basic setup of directories for storing facts and has some tasks focused around providing debug messages such as displaying known variables and facts as well as installing some utility packages
- Has no dependencies and has ‘allow_duplicates’ explicitly set to ‘false’
- network_role
- Handles configuration of network related items such as firewall, interface options, DNS resolver, etc.
- Depends on base_role under meta/main.yaml and also has ‘allow_duplicates’ explicitly set to ‘false’
- cron_role