FEATURE: Simple playbook for configuring Ansible user implement. One host, simple vault, script to run it. Task creates user, grants sudo
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Basic Proxmox guest deployment
|
||||
hosts: all
|
||||
remote_user: root
|
||||
roles:
|
||||
- ../roles/0_basic_postinstall
|
||||
vars_files:
|
||||
../data/secrets.yaml
|
||||
vars:
|
||||
ansible_user_passwd_hash: "{{ ansible_become_password | password_hash('sha512', 's3edscrj45e6r') }}"
|
||||
user_passwd_hash: "{{ user_password | password_hash('sha512', 's3ed6123jhgcr') }}"
|
||||
|
||||
handlers:
|
||||
- name: restart sshd
|
||||
service:
|
||||
name: sshd
|
||||
state: restarted
|
||||
Reference in New Issue
Block a user