Comments (5)
Just for reference, I am running into this as well:
TASK [wetty : Copy cert.pem to Wetty dir] ******************************************************************************************
fatal: [EduCauseTrey.tower.0.redhatgov.io]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'ec2_tag_Index'\n\nThe error appears to have been in '/home/tprinz/Documents/Projects/EduCause-2018-Ansible-Workshop/redhatgov.workshops/roles/wetty/tasks/main.yml': line 39, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n#-------------------------------------------------------\n- name: Copy cert.pem to Wetty dir\n ^ here\n"}
fatal: [EduCauseTrey.tower.1.redhatgov.io]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'ec2_tag_Index'\n\nThe error appears to have been in '/home/tprinz/Documents/Projects/EduCause-2018-Ansible-Workshop/redhatgov.workshops/roles/wetty/tasks/main.yml': line 39, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n#-------------------------------------------------------\n- name: Copy cert.pem to Wetty dir\n ^ here\n"}
from redhatgov.workshops.
from redhatgov.workshops.
I'm using on my Mac:
Python 2.7.15
Ansible 2.6.2
Terraform v0.11.10
pip list | grep boto
boto 2.49.0
boto3 1.7.72
botocore 1.10.72
But, in order to get instances tag from ec2 I had to use this: https://github.com/rafaeltuelho/redhatgov.workshops/blob/redhatbr/roles/wetty/tasks/main.yml#L3-L10
and then I can use this: {{ hostvars[inventory_hostname].ec2_tags.tags.Index }}
, like in https://github.com/rafaeltuelho/redhatgov.workshops/blob/redhatbr/roles/wetty/tasks/main.yml#L52
from redhatgov.workshops.
from redhatgov.workshops.
Thanks, @ajacocks ! I'll take a look at this approach.
thanks.
from redhatgov.workshops.
Related Issues (20)
- Fix rhel workshop to allow use of cloud access for RHEL 8
- Documentation updates for rhel_aws workshop
- 2_load.yml playbook execution failing for rhel_aws workshop due to undefined variable
- 2_load.yml playbook for rhel_aws workshop consistently hangs on task TASK [graphical : Install GUI components and Xrdp build reqs on RHEL 8]
- Documentation error for RHEL workshop
- yum update failing for RHEL workshop when RHEL version is 8.3
- Ansible workshop deployment with Cloud Access fails to add Ansible repos due to lack of subscription
- Web terminal appears to wrap after 80 characters HOT 3
- RHEL8 workshop Integrate container into systemd fails HOT 4
- bash-completion package not installed on RHEL 8 hosts HOT 2
- Rhel
- The STIG Now Requires SELinux User Assignments HOT 1
- RHEL 8 AWS workshop: Change to use of aws.create role breaks deployment in region ap-southeast 2 HOT 3
- SELinux workshop - clarify sudo use in typed steps
- SELinux workshop - clarify editing process, indicate vi or other
- AWS RHEL workshop provisioning failing at TASK [acme.sh to issue certs with session token] HOT 5
- Deprecated - community.kubernetes.k8s - replace with kubernetes.core.k8s in playbooks and roles
- RHEL_AWS: RHEL and Windows AMI names have changed
- RHEL_AWS: " enable auto-selection of RHEL and Windows AMIs" breaks RHEL 8 workshop deployment
- RHEL_AWS: Certificate installation failing HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redhatgov.workshops.