From 8d05f0bed5fa9f476fbb869bc53037b33abf878a Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Mon, 1 Mar 2021 01:06:49 +0000 Subject: [PATCH] updating playbook --- test.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test.yml b/test.yml index b021673..be6c122 100644 --- a/test.yml +++ b/test.yml @@ -1,8 +1,16 @@ --- - hosts: all tasks: - - name: Test task to create a file - ansible.builtin.file: - path: /root/test_file - state: touch + - name: Create default user + user: + name: "{{ default_user }}" + password: "{{ default_user_password | password_hash('sha512') }}" + groups: sudo + create_home: yes + shell: /bin/zsh + generate_ssh_key: yes + ssh_key_bits: 2048 + ssh_key_file: .ssh/id_rsa + update_password: always + state: present ...