mirror of
https://github.com/roles-ansible/ansible_collection_users.git
synced 2024-08-16 10:29:50 +02:00
Merge pull request #14 from roles-ansible/usr
make ansible a system account
This commit is contained in:
commit
05b0b7cd2d
3 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
|||
shell: '/bin/bash'
|
||||
group: 'ansible'
|
||||
state: "{{ l3d_users__ansible_user_state | ternary('present', 'absent') }}"
|
||||
system: true
|
||||
password: "{{ l3d_users__ansible_user_password }}"
|
||||
create_home: true
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
state: 'present'
|
||||
create_home: "{{ user.create_home | default(true) }}"
|
||||
home: "{{ user.home | default('/home/' + user.name) }}"
|
||||
comment: "User created by ansible"
|
||||
comment: "{{ user.name }}"
|
||||
shell: "{{ user.shell | default('/bin/bash') }}"
|
||||
password: "{{ user.password | default() }}"
|
||||
loop: "{{ _l3d_users__merged_users }}"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
playbook_version_number: 13
|
||||
playbook_version_number: 14
|
||||
playbook_version_path: 'l3d.users.user.version'
|
||||
|
|
Loading…
Reference in a new issue