2022-11-29 20:23:44 +00:00
|
|
|
---
|
2022-06-19 10:38:23 +00:00
|
|
|
- hosts: all
|
2023-01-15 13:39:10 +00:00
|
|
|
|
2022-06-19 10:38:23 +00:00
|
|
|
roles:
|
2023-01-15 13:39:10 +00:00
|
|
|
- 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 }}"
|
|
|
|
become: true
|
|
|
|
- role: user_config
|
|
|
|
vars:
|
|
|
|
user_config_username: root
|
|
|
|
become: true
|
|
|
|
|