From 70169030e0c5cc7c8ee20ee2d3fa2603eee7fe07 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 1 Jan 2021 21:07:35 +0100 Subject: [PATCH] Adapted for use with moode radio player --- roles/native-sudo/tasks/main.yml | 13 +++---------- roles/native-user-administrator/tasks/main.yml | 4 ++++ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/roles/native-sudo/tasks/main.yml b/roles/native-sudo/tasks/main.yml index 73655c6c..29e4b6b9 100644 --- a/roles/native-sudo/tasks/main.yml +++ b/roles/native-sudo/tasks/main.yml @@ -1,11 +1,4 @@ - name: install sudo - pacman: name=sudo state=present - -- name: create sudoers - copy: - src: sudoers - dest: /etc/sudoers - mode: "0440" - owner: root - group: root - backup: yes + package: + name: sudo + state: present diff --git a/roles/native-user-administrator/tasks/main.yml b/roles/native-user-administrator/tasks/main.yml index add46de5..cf0f11f7 100644 --- a/roles/native-user-administrator/tasks/main.yml +++ b/roles/native-user-administrator/tasks/main.yml @@ -3,6 +3,10 @@ name: administrator update_password: on_create password: "{{ user_administrator_initial_password | password_hash('sha512') }}" + create_home: yes + generate_ssh_key: yes + ssh_key_type: rsa + ssh_key_bits: 8192 - name: create /home/administrator/.ssh/authorized_keys copy: