Skip to content

Commit

Permalink
Merge pull request #14 from roles-ansible/usr
Browse files Browse the repository at this point in the history
make ansible a system account
  • Loading branch information
DO1JLR authored Apr 16, 2024
2 parents 247ac27 + 152ffa2 commit 05b0b7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions roles/user/tasks/user_ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion roles/user/tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/user/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
playbook_version_number: 13
playbook_version_number: 14
playbook_version_path: 'l3d.users.user.version'

0 comments on commit 05b0b7c

Please sign in to comment.