# The default shell for a user if none is specified
users_default_shell: /bin/bash
# Create home dirs for new users? Set this to false if you manage home
# directories in some other way.
users_create_homedirs: true

# Lists of users to create and delete
users:
  - username: username
    name: full_name_of_user
    groups: ['sudo']
    *when: ansible_os_family == "Debian"*
    groups: ['wheel']
    *when: ansible_os_family == "RedHat"*
    uid: 2001
    ssh_key:
      - "ssh-dss AAAAB3N...Enter code here...

When conditionals not skipping "RedHat" tasks using the above 
roles/users/default/main.yml syntax, which is for an ubuntu system

I also tried doing this:

  - username: same_as_above_username
    name: full_name_of_user
    groups: ['wheel']
    uid: 1001

... but still not skipping "redhat" tasks

Hope someone can help. TIA

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4e76cc63-e5e7-4066-b83b-93993d1c41ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to