try ansible pull
This commit is contained in:
parent
446b7ff6e5
commit
0f5871be54
5 changed files with 17 additions and 7 deletions
|
@ -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
|
||||
|
|
7
id_gitlab
Normal file
7
id_gitlab
Normal file
|
@ -0,0 +1,7 @@
|
|||
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
||||
QyNTUxOQAAACB7RSxTXB1pvHtmlHXv4kAKXvepfzuBJrvS1HIeFuc7UAAAAJBcHmg7XB5o
|
||||
OwAAAAtzc2gtZWQyNTUxOQAAACB7RSxTXB1pvHtmlHXv4kAKXvepfzuBJrvS1HIeFuc7UA
|
||||
AAAEBJ1s0cO7EfT9xyQjVczd0cWNK+MsWwL49hR97D6IhY0XtFLFNcHWm8e2aUde/iQApe
|
||||
96l/O4Emu9LUch4W5ztQAAAACHBpbUB4MjYwAQIDBAU=
|
||||
-----END OPENSSH PRIVATE KEY-----
|
1
id_gitlab.pub
Normal file
1
id_gitlab.pub
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHtFLFNcHWm8e2aUde/iQApe96l/O4Emu9LUch4W5ztQ pim@x260
|
|
@ -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
|
||||
|
|
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