1
0
Fork 0
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:
L3D 2024-04-16 14:13:16 +02:00 committed by GitHub
commit 05b0b7cd2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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 }}"

View file

@ -1,3 +1,3 @@
---
playbook_version_number: 13
playbook_version_number: 14
playbook_version_path: 'l3d.users.user.version'