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

ansible returns with "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) – Debian

I am running myserver in ubuntu: + sudo cat /etc/os-release NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.6 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial I use ansible and when I run it I get the following error: fatal:…

VIEW QUESTION

Ansible suddenly uses svr4pkg as a backend of yum – CentOS

Declared YUM task as below: --- - hosts: all vars: tasks: - name: install package yum: name: ntp state: present Ran following command: ansible-playbook test.yml -i localhost, --connection=local -vvvv Receiving error message: TASK [install package] *************************************************************************************************************************************************** task path: /home/osuser/dod/test.yml:6 Using…

VIEW QUESTION
Back To Top
Search