This commit is contained in:
vincent 2019-02-07 19:38:33 +01:00
parent ab359a3840
commit 2b5b46e945
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
---
# defaults file for ansible_bootstrap
username: vincent
userPassword: $6$GX8Mnp13vKWc1rye$HnFNZ/9oUg8K1rkaHJ1DKKk6IvWP0NP8K/dPOtLOfWjoVmQtx8MiF6eMEVJqjLZvCckDkg9AHjQzwQZfFGzED0
userPassword: $6$GX8Mnp13vKWc1rye$HnFNZ/9oUg8K1rkaHJ1DKKk6IvWP0NP8K/dPOtLOfWjoVmQtx8MiF6eMEVJqjLZvCckDkg9AHjQzwQZfFGzED0
uid: 1000

View File

@ -15,6 +15,7 @@
name: "{{username}}" # required. Name of the user to create, remove or modify.
skeleton: false # not required. Optionally set a home skeleton directory. Requires create_home option!
create_home: yes # not required. Unless set to C(no), a home directory will be made for the user when the account is created or if the home directory does not exist.,Changed from C(createhome) to C(create_home) in version 2.5.
uid: "{{uid}}"
password: "{{userPassword}}" # not required. Optionally set the user's password to this crypted value.,On macOS systems, this value has to be cleartext. Beware of security issues.,See U(https://docs.ansible.com/ansible/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module) for details on various ways to generate these password values.
system: no # not required. When creating an account C(state=present), setting this to C(yes) makes the user a system account. This setting cannot be changed on existing users.
state: present # not required. choices: absent;present. Whether the account should exist or not, taking action if the state is different from what is stated.
@ -55,4 +56,6 @@
owner: "{{username}}" # not required. Name of the user that should own the file/directory, as would be fed to I(chown).
with_items:
- id_rsa
- authorized_keys
- authorized_keys