try ansible pull

This commit is contained in:
Pim Kunis 2023-03-13 11:14:42 +01:00
parent 446b7ff6e5
commit 04ccb1c29e
3 changed files with 9 additions and 7 deletions

View file

@ -15,3 +15,8 @@ packages:
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

View file

@ -5,8 +5,5 @@
- name: ensure file exists
copy:
content: ""
dest: /home/pim/testje.txt
dest: ~/testje.txt
force: false
group: sys
owner: root
mode: 0555

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"
#}
}