In our playbooks, we used to load one OS-specific vars file for all our roles. Now we'd like to move the variables into each role. A method I had to do this before does not seem to be working. For our auditd role, in the vars/main.yml file I have this:
auditd_pkg: CentOS: audit Rocky: audit Debian: auditd Ubuntu: auditd But it gives me this error: *argument 'package' is of type <class dict> and we were unable to convert to list:* How else can I list these variables without having specific os-related files in each role? -- 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/c58a3df2-0639-47fd-85fd-801897604f4cn%40googlegroups.com.
