user_config ouside of site (to remove git.ducamps.win dependance)

This commit is contained in:
vincent 2023-11-01 08:41:03 +01:00
parent 594ffcad44
commit 8718bfe051
3 changed files with 19 additions and 17 deletions

View 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 }}'

View File

@ -1,23 +1,10 @@
---
- 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 }}'
- role: user_config
vars:
user_config_username: '{{ user.name }}'
become_user: '{{ user.name }}'
user_config_username: "{{ user.name }}"
become_user: "{{ user.name }}"
become: true
- role: user_config
vars:

View File

@ -7,5 +7,4 @@
- import_playbook: playbooks/HashicorpStack.yml
- import_playbook: playbooks/database.yml
- import_playbook: playbooks/rsyncd.yml
- import_playbook: playbooks/music-player.yml
- import_playbook: playbooks/user_config.yml
- import_playbook: playbooks/create_user.yml