2022-06-19 10:38:23 +00:00
|
|
|
---
|
2022-11-29 20:23:44 +00:00
|
|
|
- hosts:
|
2022-06-19 10:38:23 +00:00
|
|
|
- homelab
|
|
|
|
- VPS
|
2023-11-14 18:21:47 +00:00
|
|
|
- NAS
|
2022-06-19 10:38:23 +00:00
|
|
|
vars:
|
|
|
|
# certbot_force: true
|
2023-01-15 13:39:10 +00:00
|
|
|
tasks:
|
2023-01-15 15:59:36 +00:00
|
|
|
- name: Create user
|
|
|
|
ansible.builtin.include_role:
|
2023-01-15 13:39:10 +00:00
|
|
|
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
|
2022-06-19 10:38:23 +00:00
|
|
|
roles:
|
|
|
|
- system
|
|
|
|
- autofs
|
|
|
|
- cronie
|