revert to waiting...

This commit is contained in:
Pim Kunis 2023-03-13 21:52:35 +01:00
parent ccfa6a295c
commit f6211eec7c
4 changed files with 4 additions and 20 deletions

View file

@ -4,7 +4,7 @@
tasks:
- name: Wait for cloud init to finish
pause:
minutes: 2
seconds: 120
- name: Update repositories
apt:
autoremove: true

View file

@ -14,10 +14,3 @@ packages:
- dnsmasq
package_update: true
package_upgrade: true
package_reboot_if_required: true
ansible:
install_method: pip
pull:
url: "https://gitlab.com/pizzapim/dmz-dns-vm.git"
playbook_name: local.yml
accept_host_key: true

View file

@ -1,9 +0,0 @@
- hosts: localhost
connection: local
tasks:
- name: ensure file exists
copy:
content: ""
dest: ~/testje.txt
force: false

View file

@ -50,7 +50,7 @@ resource "libvirt_domain" "ubuntu" {
cloudinit = libvirt_cloudinit_disk.cloudinit.id
#provisioner "local-exec" {
# command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -T 60 -u root -i inventory ansible.yml"
#}
provisioner "local-exec" {
command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -T 60 -u root -i inventory ansible.yml"
}
}