user_config ouside of site (to remove git.ducamps.win dependance)
This commit is contained in:
parent
594ffcad44
commit
8718bfe051
16
ansible/playbooks/create_user.yml
Normal file
16
ansible/playbooks/create_user.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- role: ansible-user
|
||||||
|
vars:
|
||||||
|
user_name: '{{ user.name }}'
|
||||||
|
user_ldap: '{{ sssd_configure}}'
|
||||||
|
user_password: '{{ userPassword }}'
|
||||||
|
user_authorized_key: '{{ user.authorized_keys}}'
|
||||||
|
user_privatekey: '{{ user.privatekey}}'
|
||||||
|
user_shell: '/bin/zsh'
|
||||||
|
user_uid: '{{ user.uid }}'
|
||||||
|
user_groups:
|
||||||
|
- docker
|
||||||
|
become: true
|
||||||
|
become_user: '{{ user.name }}'
|
@ -1,23 +1,10 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-user
|
|
||||||
vars:
|
|
||||||
user_name: '{{ user.name }}'
|
|
||||||
user_ldap: '{{ sssd_configure}}'
|
|
||||||
user_password: '{{ userPassword }}'
|
|
||||||
user_authorized_key: '{{ user.authorized_keys}}'
|
|
||||||
user_privatekey: '{{ user.privatekey}}'
|
|
||||||
user_shell: '/bin/zsh'
|
|
||||||
user_uid: '{{ user.uid }}'
|
|
||||||
user_groups:
|
|
||||||
- docker
|
|
||||||
become: true
|
|
||||||
become_user: '{{ user.name }}'
|
|
||||||
- role: user_config
|
- role: user_config
|
||||||
vars:
|
vars:
|
||||||
user_config_username: '{{ user.name }}'
|
user_config_username: "{{ user.name }}"
|
||||||
become_user: '{{ user.name }}'
|
become_user: "{{ user.name }}"
|
||||||
become: true
|
become: true
|
||||||
- role: user_config
|
- role: user_config
|
||||||
vars:
|
vars:
|
||||||
|
@ -7,5 +7,4 @@
|
|||||||
- import_playbook: playbooks/HashicorpStack.yml
|
- import_playbook: playbooks/HashicorpStack.yml
|
||||||
- import_playbook: playbooks/database.yml
|
- import_playbook: playbooks/database.yml
|
||||||
- import_playbook: playbooks/rsyncd.yml
|
- import_playbook: playbooks/rsyncd.yml
|
||||||
- import_playbook: playbooks/music-player.yml
|
- import_playbook: playbooks/create_user.yml
|
||||||
- import_playbook: playbooks/user_config.yml
|
|
||||||
|
Loading…
Reference in New Issue
Block a user