Set password;Force reboot
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2021-06-10 15:07:48 +02:00
parent 3426cd7ed3
commit 4257849ca4
3 changed files with 10 additions and 1 deletions

View File

@ -6,4 +6,5 @@
roles:
- vapp
- network
- users
- cleanup

View File

@ -3,4 +3,5 @@
name: firstboot
state: absent
- name: Reboot host
reboot:
ansible.builtin.shell:
cmd: reboot now

View File

@ -0,0 +1,7 @@
- name: Set root password
ansible.builtin.user:
name: root
password: "{{ ovfproperties['guestinfo.rootpw'] }}"
generate_ssh_key: yes
ssh_key_bits: 2048
ssh_key_file: .ssh/id_rsa