homelab/ansible/playbooks/user_config.yml

26 lines
682 B
YAML
Raw Normal View History

2022-11-29 20:23:44 +00:00
---
- hosts: all
roles:
- role: ansible-user
vars:
2023-08-25 12:12:38 +00:00
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
2023-08-25 12:12:38 +00:00
become_user: '{{ user.name }}'
- role: user_config
vars:
2023-08-25 12:12:38 +00:00
user_config_username: '{{ user.name }}'
become_user: '{{ user.name }}'
become: true
- role: user_config
vars:
user_config_username: root
become: true