561e77923f
--amend squash
27 lines
657 B
YAML
27 lines
657 B
YAML
---
|
|
- hosts:
|
|
- homelab
|
|
- VPS
|
|
- NAS
|
|
vars:
|
|
# certbot_force: true
|
|
tasks:
|
|
- name: Create user
|
|
ansible.builtin.include_role:
|
|
name: "ansible-user"
|
|
apply:
|
|
become: true
|
|
vars:
|
|
user_name: "{{ create.name }}"
|
|
user_home: "{{ create.home }}"
|
|
user_groups: "{{ create.groups|default('') }}"
|
|
user_shell: "{{ create.shell|default('') }}"
|
|
user_authorized_key: "{{ create.authorized_keys|default([]) }}"
|
|
user_privatekey: "{{ create.privatekey|default([])}}"
|
|
loop: "{{system_user}}"
|
|
loop_control:
|
|
loop_var: create
|
|
roles:
|
|
- system
|
|
- cronie
|