summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/ansible.cfg13
-rw-r--r--TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/awsterraform.pem (renamed from TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/mykey.pem)1
-rw-r--r--TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/instance.yml13
3 files changed, 13 insertions, 14 deletions
diff --git a/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/ansible.cfg b/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/ansible.cfg
index 3ea4292..7b56ad4 100644
--- a/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/ansible.cfg
+++ b/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/ansible.cfg
@@ -1,14 +1,5 @@
[defaults]
inventory = /root/aws/ip.txt
host_key_checking= False
-private_key_file = /root/aws/mykey.pem
-remote_user=vyos
-[privilege_escalation]
-[inventory]
-[paramiko_connection]
-[ssh_connection]
-[persistent_connection]
-[accelerate]
-[selinux]
-[colors]
-[diff]
+private_key_file = /root/aws/awsterraform.pem # check the name
+remote_user=vyos \ No newline at end of file
diff --git a/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/mykey.pem b/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/awsterraform.pem
index 2fd39a4..9a87ee2 100644
--- a/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/mykey.pem
+++ b/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/awsterraform.pem
@@ -2,4 +2,3 @@
Copy your key.pem from AWS
------END OPENSSH PRIVATE KEY-----
diff --git a/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/instance.yml b/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/instance.yml
index b8faa08..ee56034 100644
--- a/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/instance.yml
+++ b/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/Ansible/instance.yml
@@ -1,16 +1,25 @@
+##############################################################################
+# About tasks:
+# "Wait 300 seconds, but only start checking after 60 seconds" - try to make ssh connection every 60 seconds until 300 seconds
+# "Configure general settings for the vyos hosts group" - make provisioning into AWS VyOS node
+# You have to add all necessary cammans of VyOS under the block "lines:"
+##############################################################################
+
+
- name: integration of terraform and ansible
hosts: all
gather_facts: 'no'
tasks:
+
- name: "Wait 300 seconds, but only start checking after 60 seconds"
wait_for_connection:
delay: 60
timeout: 300
- - name: Configure general settings for the vyos hosts group
+ - name: "Configure general settings for the vyos hosts group"
vyos_config:
lines:
- set system name-server 8.8.8.8
save:
- true
+ true \ No newline at end of file