Trying to create groups and then users using with files and its not working..How should the lists be represented in the groups vars file and the users vars file?
It doesnt like it just as text below..how am I supposed to list the values out? How do people normally create a few users and groups like this? groups.yml devops dbadmin business users.yml tom dave joe Playbook --- # Users and Groups - hosts: localhost vars_files: - groups.yml - users.yml tasks: - name: Create groups group: name: "{{ item }}" state: present with_file: - groups.yml - name: Create users user: name: "{{ item }}" state: present with_file: - users.yml -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a1a83f03-86fa-40b7-87e4-9dc0970417cc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.