insightdatascience / ansible-playbook Goto Github PK
View Code? Open in Web Editor NEWAnsible playbook to deploy distributed technologies
License: Apache License 2.0
Ansible playbook to deploy distributed technologies
License: Apache License 2.0
Issuing the command:
ansible-playbook ./zookeeper.yml --extra-vars "zookeeper_tag=Name_insight-test" --tags install
yields the following error:
PLAY [Creating host group zookeeper from dynamic inventory] *******************************************************************
TASK [Gathering Facts] ********************************************************************************************************
ok: [localhost]
TASK [add_host] ***************************************************************************************************************
fatal: [localhost]: FAILED! => {"failed": true, "msg": "'dict object' has no attribute u'tag_Name_insight_test'"}
NO MORE HOSTS LEFT ************************************************************************************************************
to retry, use: --limit @/home/ubuntu/git/ansible-playbook/zookeeper.retry
PLAY RECAP ********************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1
Here is the contents of my vars.yml file:
key_pair: ssh
instance_type: t2.medium
region: us-west-2
security_group_id: sg-7590d60e
num_instances: 2
subnet_id: subnet-1cd01347
tag_key_vals:
Name: insight-test
class: kafka
class2: zookeeper
Any ideas if I'm doing something wrong or if a bug may be causing this?
Ubuntu 16.04, Ansible 2.3.0
As per the readme, a directory should be created at /etc/ansible/hosts. However, the default Ansible inventory location is /etc/ansible/hosts. This means the default inventory location specified in /etc/ansible/ansible.cfg must be changed to some other location. It would be good to specify it in the readme to not confuse Ansible newcomers. Thanks!
Handlers after first one not recognized by ansible.
ERROR! handlers not found
It seems the pem key needs to be established with an auth agent for these scripts to work as designed.
FWIW, I think it'd be neat if we could find a configuration option that'd obviate the need for ssh-add
, but it's fine as is.
Potentially a variable caching problem
While nodes are initializing and running checks, the ansible ec2 terminate
command succeeds (and the text is super-green!) even though the nodes are not terminating (as shown in the EC2 Management Console).
Later, after node initialization, the same terminate
command shows nodes as changed
in a yellow color, and nodes are actually shut down (according to AWS console).
changed=0
is fairly clear, but suggestion: report these as failed terminate commands.
ansible-playbook/experimental/Dockerfile
Line 10 in 1b6a0f3
\
since it escapes the newline. This small typo occurs after you comment out the following apt-get install
commands. I have tried it, and it outputs an error
The command '/bin/sh -c apt-get update RUN pip install boto' returned a non-zero code: 100
To fix it, I think you should either comment back the following apt-get
s or delete the last \
. Thank you for your confirmation. We are developing the tool, so your feedback will be greatly appreciated.
I think the primary need here is to update the README.
florp:ansible-playbook me$ ansible-playbook ./ec2.yml --extra-vars "vars_file=./example_ec2_vars.yml" --tags launch
[WARNING]: log file at /var/log/ansible.log is not writeable and we cannot create it, aborting
ERROR! Attempted to execute "/etc/ansible/hosts/ec2.py" as inventory script: Inventory script (/etc/ansible/hosts/ec2.py) had an execution error: b'Traceback (most recent call last):\n File "/etc/ansible/hosts/ec2.py", line 128, in <module>\n import boto\nImportError: No module named boto\n'
It seems ansible needs to be run as root in this configuration, is that right? I see I can change the /var/log/ansible.log
entry in the ansible.cfg file, but does ansible need to run as root otherwise?
I installed ansible via pip3
(MacOS 10.12.3), but boto
needed to be installed for python2.7. Is python2 explicitly required?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.