revert to waiting...
This commit is contained in:
parent
ccfa6a295c
commit
f6211eec7c
4 changed files with 4 additions and 20 deletions
|
@ -4,7 +4,7 @@
|
|||
tasks:
|
||||
- name: Wait for cloud init to finish
|
||||
pause:
|
||||
minutes: 2
|
||||
seconds: 120
|
||||
- name: Update repositories
|
||||
apt:
|
||||
autoremove: true
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
- hosts: localhost
|
||||
connection: local
|
||||
|
||||
tasks:
|
||||
- name: ensure file exists
|
||||
copy:
|
||||
content: ""
|
||||
dest: ~/testje.txt
|
||||
force: false
|
6
main.tf
6
main.tf
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue