try ansible pull
This commit is contained in:
parent
446b7ff6e5
commit
04ccb1c29e
3 changed files with 9 additions and 7 deletions
|
@ -15,3 +15,8 @@ packages:
|
||||||
package_update: true
|
package_update: true
|
||||||
package_upgrade: true
|
package_upgrade: true
|
||||||
package_reboot_if_required: true
|
package_reboot_if_required: true
|
||||||
|
ansible:
|
||||||
|
install_method: pip
|
||||||
|
pull:
|
||||||
|
url: "https://gitlab.com/pizzapim/dmz-dns-vm.git"
|
||||||
|
playbook_name: local.yml
|
||||||
|
|
|
@ -5,8 +5,5 @@
|
||||||
- name: ensure file exists
|
- name: ensure file exists
|
||||||
copy:
|
copy:
|
||||||
content: ""
|
content: ""
|
||||||
dest: /home/pim/testje.txt
|
dest: ~/testje.txt
|
||||||
force: false
|
force: false
|
||||||
group: sys
|
|
||||||
owner: root
|
|
||||||
mode: 0555
|
|
||||||
|
|
6
main.tf
6
main.tf
|
@ -50,7 +50,7 @@ resource "libvirt_domain" "ubuntu" {
|
||||||
|
|
||||||
cloudinit = libvirt_cloudinit_disk.cloudinit.id
|
cloudinit = libvirt_cloudinit_disk.cloudinit.id
|
||||||
|
|
||||||
provisioner "local-exec" {
|
#provisioner "local-exec" {
|
||||||
command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -T 60 -u root -i inventory ansible.yml"
|
# command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -T 60 -u root -i inventory ansible.yml"
|
||||||
}
|
#}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue