From 6598637e9182eda852b4c6ae0f426a2538ed664e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 8 Apr 2021 13:46:30 -0400 Subject: [PATCH] Remove cruft and add mkpasswd setup --- roles/base/tasks/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 56ec883..405c6e6 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -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