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

Ansible not reporting distribution info on Ubuntu 20.04? – Debian

Example on Ubuntu 18.04 reporting distribution info in 'ansible_facts': $ ansible -i hosts ubuntu1804 -u root -m setup -a "filter=ansible_distribution*" ubuntu1804 | SUCCESS => { "ansible_facts": { "ansible_distribution": "Ubuntu", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "Debian", "ansible_distribution_major_version": "18", "ansible_distribution_release": "bionic", "ansible_distribution_version":…

VIEW QUESTION
Back To Top
Search