Skip to content

Instantly share code, notes, and snippets.

@bcoca
Created January 16, 2015 13:55
Show Gist options
  • Save bcoca/bb55a95ac15a749890a0 to your computer and use it in GitHub Desktop.
Save bcoca/bb55a95ac15a749890a0 to your computer and use it in GitHub Desktop.
ansible -m getent -a 'database=passwd key=bcoca' -i 'localhost,' all -c local
localhost | success >> {
"ansible_facts": {
"getent_passwd": {
"bcoca": [
"x",
"1000",
"1000",
"",
"/home/bcoca",
"/bin/bash"
]
}
},
"changed": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment