Remove cruft and add mkpasswd setup

This commit is contained in:
Joshua Boniface 2021-04-08 13:46:30 -04:00 committed by Joshua Boniface
parent 25674731cd
commit 6598637e91
1 changed files with 8 additions and 8 deletions

View File

@ -162,6 +162,7 @@
- dns-root-data
- bind9-host
- dnsutils
- whois
- postfix
- ntp
- openssh-client
@ -523,18 +524,17 @@
dest: /var/home
tags: users
- name: ensure group media exists
group:
name: media
gid: 9000
state: present
# root
- name: generate Root password hash
command: "mkpasswd --method=sha512crypt {{ root_password }}"
no_log: true
register: mkpasswd
tags: users
# root
- name: set Root password
user:
name: root
password: "{{ passwdhash_root }}"
password: "{{ mkpasswd.stdout }}"
tags: users
- name: remove Root known_hosts
@ -656,7 +656,7 @@
name: "{{ item.name }}"
uid: "{{ item.uid }}"
group: operator
groups: sudo,adm,media,wireshark
groups: sudo,adm,wireshark
shell: /bin/bash
home: "/var/home/{{ item.name }}"
createhome: yes