https://lh3.googleusercontent.com/-MjJwu22DXyk/VYR9r9_j4VI/DKA/kW8VCFxf9D4/s1600/Screen%2BShot%2B2015-06-19%2Bat%2B21.38.10.png
The output in the AWS console.
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from
try w/o a filter
On Fri, Jun 19, 2015 at 1:06 PM, Bruno Galindro da Costa
bruno.galin...@gmail.com wrote:
I need to configure ansible to make ssh connections to my EC2 instances
based on parameters configure in ec2 tags. I've successfully done this using
ec2.py script to build dynamic
When running this ec2 module task without the 'build_number' variable, the
EC2 machine is created with a build tag of '
__omit_place_holder__6248a11ef81332080f31b81d2894e811f905b723' instead of
being empty as expected.
Is the formatting wrong or is there a bug here?:
- name: provision an
Brian, thanks for cooperation. I already tried without the from_json
filter, but no success:
- hosts: tag_v3_elasticsearch_prod_True
vars:
- ansible_ssh_private_key_file: {{ ec2_tag_ssh.ssh_key }}
- ansible_ssh_port: {{ ec2_tag_ssh.ssh_port }}
- ansible_ssh_user: {{
I don't see why not, logging an issue could result in adding such
functionality.
Another thing to try in the meantime is to replace with a '~'. Quotes are
probably necessary.
~ in YAML means None in Python.
On Friday, June 19, 2015, ddffgpmfn t...@aioue.net wrote:
Alas, default('') applies an
That is due to omit only working for top level keys (arguments of the
module) and not sub keys.
Maybe using |default('') would work instead.
On Friday, June 19, 2015, ddffgpmfn t...@aioue.net wrote:
Alas, default('') applies an empty tag which then shows up in the inventory.
I don't see a ticket about this, may I raise an enhancement?
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from this group and stop receiving emails
Whenever I set a user password with rabbitmq_user I cannot then log in.
Using ANSIBLE_KEEP_REMOTE_FILES is see that the correct password is being
sent.
If I then reset the password using rabbitmqctl to the exact same value that
rabbitmq_user used I can then log in.
Is anybody else
RTFM: This was an existing user, hence:
password:
description:
- Password of user to add.
- *To change the password of an existing user, you must also specify*
*C(force=yes).*
required: false
default: null
--
You received this message because you are subscribed
But it's still unclear why the password is getting changed/corrupted
without the force flag...
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Thanks Benno,
I install Ansible and Boto in a virtualenv using pip, and then add the
following to group_vars/localhosts.yml, which is enough to ensure that the
cloudformation, s3, and ec2 modules run on the localhost. Do I need to
also install Boto on the remote?
# Do not use the system
No problems, I think you have the picture right, but might have missed my
earlier question: do I need to install Boto on the target server?
So, yes:
- All playbooks are run on my laptop
- A playbook aws-start.yml first creates the EC2 instance. It operates
on the localhost
- A
Just a follow up. I tried two more scenarios, the second being the
boil-the-ocean approach :-)
1. I deactivated the virtual environment, and reinstalled Ansible and Boto
to /usr/local using Homebrew and Pip as follows:
brew install ansible
pip install boto==2.38.0
I then reran the playbook,
Both servers are domain members and i am using domain administrator account.
Following scheme doesn't work neither:
Ansible --- srv01 --- srv01 works
|
--- srv02 doesn't work
Ansible --- srv02 --- srv02 works
For anyone who comes across this and has the same question, I did not
really figure it out, but I did just decide to install the private key in
the target machines' /etc/ssh directory and chmod it to 0600. I figure it's
basically as secure as it could get without a transient (in-memory only)
I feel kinda stupid now. Thanks for pointing out the obvious!
On Friday, June 19, 2015 at 11:09:55 AM UTC+2, Barry Kaplan wrote:
Just create two plays in the same playbook file. The first can run in
parallel and the second in serial.
--
You received this message because you are subscribed
Depends on the module, many just use system calls and don't run
external commands. For the command/shell ones that execute unix
commands, yes, rc is looked at.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe
boto is needed on the machine executing the module, for most cloud
operations this is normally your master/controller (local), but if you
are trying to access s3 from a target/remote server, the module will
run there, hence the requirement of boto on that machine.
--
Brian Coca
--
You
try removing the spaces --extra-vars test_var2=TESTBAR
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
I think what you describe is basically second hop issue then..
I just found
this https://msdn.microsoft.com/en-us/library/ee309365(v=vs.85).aspx
regarding multi-hop configuration for winrm - I suggest working through it
and seeing if it is any help.
Jon
On Friday, June 19, 2015 at 8:16:23
Hi All,
How does Ansible decide whether the command issued through it is
successfully executed? Is rc value is the ansible response related to this?
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from this group and stop
Just create two plays in the same playbook file. The first can run in
parallel and the second in serial.
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Hi Andrew,
If the s3 task is running on the target server, then the provisioned
instance needs to have boto installed. but if boto is not installed you
should have got a message like boto is not installed on this machine
etc.. maybe an incomplete boto installation on target server ?
- Benno
Confirmed.
For me it also doesn't work if I give the vars through the CLI with
--extra-vars test_var2 = TESTBAR
On Sunday, June 14, 2015 at 2:23:43 AM UTC+2, Brian Picciano wrote:
I have the following files:
*roles/test/defaults/main.yml*
---
test_var1: foo
test_var2: bar
Hi Mark,
One of the talks that were at our first Ansible meetups here in Berlin was
about this very topic more or less. The guys were using an Ansible callback
plugin to save the playbook run output in Elasticsearch.
I'm not sure if they managed to opensource their work yet but here's
another
Hi,
I have a playbook which deploys a new .war file for a tomcat instance.
Since there are 6 hosts in a loadbalanced setup I have configured to run
the playbook on 1 host at a time.
However, I want to do a 'pre flight check' on all hosts if the directory
where the .war file is placed even
Hi Tzach,
I think you are looking for this kind of answer from Michael himself:
https://groups.google.com/forum/#!msg/ansible-project/qfoeqytbRE4/SI58rlzeEwMJ
All the best!
On Monday, June 15, 2015 at 2:38:48 PM UTC+2, Tzach Livyatan wrote:
Hi
I have Y running servers, and I would like to
Use Ansible's dynamic inventory and access the hostname like so:
{{ hostvars[groups['rds_instance_name_goes_here][0]].ec2__address }}
Make sure the instance is set to publicly available and the security
group around it allows such connections.
On Sunday, 26 April 2015 11:56:22 UTC+2, Sergei
I think you would have a better shot at an answer if you'd ask
here: https://groups.google.com/forum/#!forum/ansible-devel
On Tuesday, 28 April 2015 22:52:30 UTC+2, kly...@squarespace.com wrote:
I am trying to use the with_inventory_hostnames lookup plugin, but it
keeps failing with the
Ok. That is helpful. I will add that as an early task in the provision.yml
playbook.
My confusion arises, because i have never installed Boto on the server
instance, yet the task runs just fine with Ansible 1.8.4 if I also supply
the AWS credential. It is a plain Ubuntu AMI, but perhaps it
win_copy does not work as the file size is around 300MB. I need to deploy
the package on to number of windows clients and install it. Is win_package
released module, i couldnt find it.
Another way i tried was to use win_get_url to download the package, but it
looks like each client calls ftp
Consider the following two commands:
(1) ansible-playbook --limit dtest --private-key=/path/to/private/key.pem
test_stat.yml
(2) ansible-playbook --limit dtest test_stat.yml
The test_stat playbook is given below:
# An ANSIBLE playbook to execute stat
- name: Play - Stat
hosts: all
many ways to do this, I would just use a configuration template:
# in slow pool part of config
{% for host in fullpool %}
{% if loop.index % 5 == 4 %}
{{host}}
{% endif%}
{% endfor %}
# in normal pool part of config
{% for host in fullpool %}
{% if loop.index % 5 != 4 %}
{{host}}
{% endif%}
{%
I need to configure ansible to make ssh connections to my EC2 instances
based on parameters configure in ec2 tags. I've successfully done this
using ec2.py script to build dynamic inventory. With this great
functionality, I've setup 3 tags that contains all what I need to make ssh
connections
Hi all,
Am trying to install nvm and PM2 from a playbook and I've hit a snag. One
of the commands I need to run is to source the pm2 users .profile file. The
issue is I don't seem to be able to do that from ansible (am using 1.9.1,
in case that matters):
- name: Source nvm profile
No, I'm saying the escaping in needed for your command line to survive
the transport to the end shell, but that the escapes should be
stripped out by then.
On Fri, Jun 19, 2015 at 12:47 PM, Bruno Galindro da Costa
bruno.galin...@gmail.com wrote:
Sorry but I don't understand what do you said.
use shell: module,e, source is a built in which you cannot use unless
you invoke it from a shell.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from this group and stop receiving emails from it, send an
Hi,
I'm trying to migrate from Chef a recipe for HAProxy.
In the bellow config one of the pool groups are considered to be coming
from slow server connections and we isolate them to use certain number of
web servers and not all of them as when you have lot's of requests with
relatively higher
source is specifically a BASH builtin, you might want to set your
executable to /bin/bash or make it part of the task, for sh use .
to source
On Fri, Jun 19, 2015 at 1:20 PM, Dean Mills dean.mi...@gmail.com wrote:
I get a slightly different error now:
TASK: [Source nvm profile]
I get a slightly different error now:
TASK: [Source nvm profile]
failed: [10.17.100.59] = {changed: true, cmd: source
/home/pm2/.profile, delta: 0:00:00.001528, end: 2015-06-19
17:18:58.307304, rc: 127, start: 2015-06-19 17:18:58.305776,
Awesome, . was what I was after, now onto the next error! :) Thanks Brian!
D
On Friday, June 19, 2015 at 2:32:20 PM UTC-3, Brian Coca wrote:
source is specifically a BASH builtin, you might want to set your
executable to /bin/bash or make it part of the task, for sh use .
to source
On
Raised, https://github.com/ansible/ansible-modules-core/issues/1565
Thanks.
On Friday, 19 June 2015 00:26:27 UTC-3, benno joy wrote:
Hi
Seems like the support for scheduled scaling policy is not yet available,
maybe you could raise a feature request in github
- Benno
On Thu, Jun 18,
42 matches
Mail list logo