skip to Main Content

Ansible how to reference the variables from different tasks files – CentOS

I want to be able to reference the variable vpc_info registered by file create-public-vpc from file create-public-sunbet /etc/ansible/roles/ec2/tasks/main.yml # tasks file for ec2-provision - name: import_tasks: create-vpc.yml import_tasks: create-public-subnet.yml /etc/ansible/roles/ec2/vars/main.yml --- # vars file for ec2-provision ################################### designate python interpreter…

VIEW QUESTION

not able to pull ansible image – Docker

I am trying to pull the ansible image, I search on hub.docker.com, I found the one, which was updated 4 years ago https://hub.docker.com/r/ansible/ansible. When I was trying to pull that, its not working. $ docker pull ansible/ansible Using default tag:…

VIEW QUESTION

Call variable in Ansible – Nginx

Apologies for this simple question, but I tried various approach without success. This is my vars file --- preprod: name: nginx prod: name: apache I am trying to pass the value of name based on the environment name user provides…

VIEW QUESTION
Back To Top
Search