Feat: change user creation for Panais and Combava
This commit is contained in:
parent
129a11db1e
commit
ed38a4144e
@ -4,7 +4,7 @@
|
|||||||
name: wheel
|
name: wheel
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: users -- Add deploy users
|
- name: create users
|
||||||
user:
|
user:
|
||||||
name: "{{ item.username }}"
|
name: "{{ item.username }}"
|
||||||
password: "{{ item.password | password_hash('sha512')}}"
|
password: "{{ item.password | password_hash('sha512')}}"
|
||||||
@ -13,17 +13,6 @@
|
|||||||
uid: "{{ item.uid }}"
|
uid: "{{ item.uid }}"
|
||||||
shell: "{{ prompt_place['stdout'] }}"
|
shell: "{{ prompt_place['stdout'] }}"
|
||||||
state: present
|
state: present
|
||||||
with_items: "{{ deploy_users }}"
|
with_items: "{{ users }}"
|
||||||
when: create_user
|
when: create_user
|
||||||
|
|
||||||
- name: users -- Add me
|
|
||||||
user:
|
|
||||||
name: "{{ item.username }}"
|
|
||||||
password: "{{ item.password | password_hash('sha512')}}"
|
|
||||||
group: "{{ item.group }}"
|
|
||||||
groups: "{{ item.groups }}"
|
|
||||||
uid: "{{ item.uid }}"
|
|
||||||
shell: "{{ prompt_place['stdout'] }}"
|
|
||||||
state: present
|
|
||||||
with_items: "{{ me }}"
|
|
||||||
when: create_user
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
users: [me, admin]
|
||||||
prompt: fish
|
prompt: fish
|
||||||
editor: nvim
|
editor: nvim
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
me: "{{ deploy_users }}"
|
users: [admin, content]
|
||||||
|
|
||||||
minimal: true
|
minimal: true
|
||||||
server: true
|
server: true
|
||||||
|
Loading…
Reference in New Issue
Block a user