updating playbook

This commit is contained in:
2021-03-01 01:06:49 +00:00
parent 0a780d736d
commit 8d05f0bed5

View File

@@ -1,8 +1,16 @@
--- ---
- hosts: all - hosts: all
tasks: tasks:
- name: Test task to create a file - name: Create default user
ansible.builtin.file: user:
path: /root/test_file name: "{{ default_user }}"
state: touch 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
... ...