Skip to content

Instantly share code, notes, and snippets.

@ksatirli
Created September 9, 2017 16:03
Show Gist options
  • Save ksatirli/61860af1552cb63690b201c58bfc3752 to your computer and use it in GitHub Desktop.
Save ksatirli/61860af1552cb63690b201c58bfc3752 to your computer and use it in GitHub Desktop.
Ansible: add user on local system
---
-
name: add user on local system
hosts: localhost
strategy: free
gather_facts: false
tasks:
- name: add user
user:
comment: Clifford Smith (clifford.smith@workwithmethod.com)
name: clifford_s
shell: /sbin/nologin
state: present
uid: 1234
group: wheel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment