You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
517 B

8 years ago
8 years ago
  1. ---
  2. - name: User | Create User Group
  3. group:
  4. name: "{{ user.group|default(user.name) }}"
  5. system: "{{ user.system|default(omit) }}"
  6. - name: User | Create User
  7. user:
  8. comment: "{{ user.comment|default(omit) }}"
  9. create_home: "{{ user.create_home|default(omit) }}"
  10. group: "{{ user.group|default(user.name) }}"
  11. home: "{{ user.home|default(omit) }}"
  12. shell: "{{ user.shell|default(omit) }}"
  13. name: "{{ user.name }}"
  14. system: "{{ user.system|default(omit) }}"
  15. when: user.name != "root"