feat: merge user create and config playbook
This commit is contained in:
parent
08ea604028
commit
3367c78314
@ -14,3 +14,16 @@
|
|||||||
- docker
|
- docker
|
||||||
become: true
|
become: true
|
||||||
become_user: '{{ user.name }}'
|
become_user: '{{ user.name }}'
|
||||||
|
|
||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- 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
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: all
|
|
||||||
roles:
|
|
||||||
- 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
|
|
@ -9,4 +9,3 @@
|
|||||||
- import_playbook: playbooks/sssd.yml
|
- import_playbook: playbooks/sssd.yml
|
||||||
- import_playbook: playbooks/database.yml
|
- import_playbook: playbooks/database.yml
|
||||||
- import_playbook: playbooks/rsyncd.yml
|
- import_playbook: playbooks/rsyncd.yml
|
||||||
- import_playbook: playbooks/create_user.yml
|
|
||||||
|
Loading…
Reference in New Issue
Block a user