Skip to content
Snippets Groups Projects
Commit 9d55f090 authored by MUNIER Florian's avatar MUNIER Florian
Browse files

[upd] host.ini

parent 73ac8c69
No related branches found
No related tags found
No related merge requests found
Pipeline #14588 canceled
......@@ -40,7 +40,7 @@ resource "openstack_compute_instance_v2" "orchestration_instance" {
# Copie des IP locales dans un fichier .txt sur la machine hébergeante
# Inventaire Ansible
provisioner "local-exec" {
command = "echo '${self.name} : ${self.access_ip_v4}' >> ip_files/private_ips.txt; echo ${self.name} ansible_host=${self.access_ip_v4} ansible_user=ubuntu ansible_ssh_private_key_file='${var.INSTANCE_ORCHEST_KEY_PAIR}.pem'>> ../Ansible/hosts.ini"
command = "echo '${self.name} : ${self.access_ip_v4}' >> ip_files/private_ips.txt; echo [node] >> hosts.ini; echo ${self.name} ansible_host=${self.access_ip_v4} ansible_user=ubuntu ansible_ssh_private_key_file='${var.INSTANCE_ORCHEST_KEY_PAIR}.pem'>> ../Ansible/hosts.ini"
}
depends_on = [openstack_compute_instance_v2.bastion_instance,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment