Add ansible provisioner
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-06-08 09:24:39 +02:00
parent 03b5338f59
commit d680b0dde4
4 changed files with 24 additions and 7 deletions

View File

@ -20,7 +20,7 @@ autoinstall:
identity:
hostname: packer-template
username: ubuntu
password: $6$E.3LG7StnEURoOWy$PTcyaJyS5HHFExctu5hWd.oH0LapJ9gXzUd62QfVDjza4rfrEy61NVLmlGE40R7eSBvWBkISvRabc2y0NQ/sy0
password: $6$rounds=4096$ZKfzRoaQOtc$M.fhOsI0gbLnJcCONXz/YkPfSoefP4i2/PQgzi2xHEi2x9CUhush.3VmYKL0XVr5JhoYvnLfFwqwR/1YYEqZy/
ssh:
install-server: yes
allow-pw: true

View File

@ -27,8 +27,7 @@ source "vsphere-iso" "ubuntuserver" {
communicator = "ssh"
ssh_username = "ubuntu"
ssh_password = "ubuntu"
// ssh_password = var.ssh_password
ssh_password = var.ssh_password
ssh_timeout = "20m"
ssh_handshake_attempts = "100"
ssh_pty = true
@ -68,10 +67,9 @@ source "vsphere-iso" "ubuntuserver" {
build {
sources = ["source.vsphere-iso.ubuntuserver"]
// provisioner "file" {
// destination = ""
// source = ""
// }
provisioner "ansible" {
playbook_file = "ansible/playbook.yml"
}
post-processor "shell-local" {
inline = [