Some users have been reporting some problems with 1.6.8 parsing,
particularly over-zealous security checks against certain shell/command
strings, in particular.
The development branch now contains fixes for nearly all of these issues
we're aware of, in addition to integration tests that cover and
Ok it was someone filing an RFE, not a PR - good catch.
yes, code would be welcome.
The "use_tags" thing was what I had proposed in the thread.
On Wed, Jul 23, 2014 at 10:07 PM, Greg Swift wrote:
> I did skim through the extensive PR list looking for one, and didn't find
> it, but could qui
I did skim through the extensive PR list looking for one, and didn't find
it, but could quite easily have missed it. Is there a good way to search
PRs? There are 59 issues with 'tags role' when searching. I only noticed
one similar, and it is the use_tags one[1].
I'll conceed that I did not sea
I have finally gottent my first OpenStack "node creation" playbook which in
fact turned out rather nice, once I looked at source code ;)
I have found out that names used in OpenStack component creation routines
from ansible will be considered "unique" and ansible will happily provide
me with ne
On Wednesday, July 23, 2014 4:12:12 PM UTC-6, Michael DeHaan wrote:
>
> It looks relative to the playbook root, and if in roles, will look in the
> "files/" dir of roles.
>
I've noticed that it does look in role's "files" dir but apparently it
doesn't look at playbook root. Is there a paramete
Absolutely brilliant!
Thanks for pulling that in so fast.
> On 24 Jul 2014, at 00:11, Michael DeHaan wrote:
>
> Yep, Benno works for us and is awesome.
>
> The unarchive fix is now merged, the command module bit is a bit different.
>
>
>
>
>> On Wed, Jul 23, 2014 at 6:59 PM, Mark Phillips
Specifically, an elasticsearch cluster, but doing this the right way would
also apply to other kinds of clusters, like RabbitMQ or Redis.
I'm using https://github.com/LaneCommunityCollege/aspects_elasticsearch to
manage my elasticsearch cluster. Currently, if I modify the configuration
settings
Yep, Benno works for us and is awesome.
The unarchive fix is now merged, the command module bit is a bit different.
On Wed, Jul 23, 2014 at 6:59 PM, Mark Phillips wrote:
> It hits the unarchive module too, it would appear. Got bit by that in the
> middle of a demo/presentation last night (th
It hits the unarchive module too, it would appear. Got bit by that in the
middle of a demo/presentation last night (that'll teach me to be running
from devel!)
There is a ticket Michael, looks like somebody has already fixed it too,
and sent you the PR.
https://github.com/ansible/ansible/pull
So there's already "with_fileglob" in Ansible
- debug: msg={{ path }}
with_fileglob: /path/to/files/*/*.tgz
This isn't recursive however, despite being able to specify multiple
directories to read.
It would be possible to make a lookup plugin that was, like a
"with_fileglob_recursive" that use
Instead of ignore_errors: True, consider:
failed_when: False
The reporting of changed always can be fixed with
changed_when: False
On Wed, Jul 23, 2014 at 1:14 PM, Synaesthete
wrote:
> I'm writing a playbook that runs an initial git commit on a folder if
> there has not yet been a commit.
So currently the duplicate param detection does look inside some quoted
args that it should not. We're working on a fix for this.
Should only happen when there are Foo= Foo= repeated in a shell/command
module, with the equal signs.
On Wed, Jul 23, 2014 at 5:05 PM, Aaron Bull Schaefer <
aaron
Hmm, can we see a full playbook so we can understand a bit more in context?
On Wed, Jul 23, 2014 at 5:34 PM, Greg M wrote:
> Helo all,
>
>
> I wonder if I can get some help with referencing facts in template.
>
> I ma not able to reference:
>
>
> every time I run my play, the file on the ho
It looks relative to the playbook root, and if in roles, will look in the
"files/" dir of roles.
If you try it and it can't find something, it will tell you where it looked.
On Wed, Jul 23, 2014 at 4:48 PM, Dmitry Makovey
wrote:
> Hi,
>
> I'm trying to get through my "slow" day here - can't
"I am getting a similar issue on 1.4.3"
Very ancient at this point.
Please upgrade to 1.6.8 (latest) first before asking a question, can't
spend time on the project list on older releases - sorry.
On Wed, Jul 23, 2014 at 1:23 PM, Nathan Robertson
wrote:
> Michael,
>
> I am getting a similar
This is a misunderstanding of force-handler behavior.
You would run-it again with --force-handlers, and any handlers would run,
whether notified or not.
Don't control-C the second run :)
On Wed, Jul 23, 2014 at 1:20 PM, Michael Palumbo <
michael.palumb...@gmail.com> wrote:
> I just tried to
Could we see more about your playbook structure?
Sounds like your group_vars/ is not at the right location.
With the later part, I apologize in that I don't know what "fails" means,
so I will need more specifics as to the nature of the beast.
On Wed, Jul 23, 2014 at 11:08 AM, Robert Osborne
wr
Not understanding the question but we really love group_vars/ and
host_vars/ a lot here.
vars_files is more like if your play wants to bring in variables for that
specific play, rather than describing info about those hosts.
On Wed, Jul 23, 2014 at 12:07 PM, Luca Carboni
wrote:
> Hi all,
> I
This is about the ninth time this has been asked in the last few weeks :)
... I am guessing nobody reads the other posts :)
There's been a bit of a proposal for a new keyword "use_tags", which I'm
not against, if reasonably minimal.
Might be a PR already.
On Tue, Jul 22, 2014 at 6:13 PM, Greg
Hi all,
I need to configure an instance which needs to connect to a remote server
via ssh, I've been doing some tests and troubleshooting but I'm doing
something wrong I guess, since when I'm tryin to connect to that ssh
server, the connection gets stuck
A (ansible) -> B (new server) -ssh> C (
A new issue has cropped up for me with v1.6.8 when running a command
through the shell module that has an equal sign in the command:
- name: register the zone a nat instance
shell: 'aws --region {{ aws_region }} ec2 describe-instances --filters
"Name=tag:Name, Values=NAT Instance A" "Name=inst
I'd like to walk a directory hierarchy of the form ///. is
a fixed root directory, and isn't relevant. I have a number of
directories, which represent machine categories. Under each are zero or
more directories, which are string values for that category. Finally,
is a directory hierarchy t
I've filed an issue in github to track this issue.
https://github.com/ansible/ansible/issues/8265
Thanks,
James
--
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
Helo all,
I wonder if I can get some help with referencing facts in template.
I ma not able to reference:
every time I run my play, the file on the host shows:
carp0_ip=””
and the same line in my template:
carp0_ip=”{{ ansible_carp0[“ipv4”][“address”] }}”
this is the snippet from
I'm writing a playbook that runs an initial git commit on a folder if there
has not yet been a commit. I check this using:
- name: Get commit count
command: git rev-list HEAD --count chdir={{ project_path }}
ignore_errors: yes
register: git_commit_count
If there have been no commits, this
Hi,
I'm trying to get through my "slow" day here - can't figure out (or locate
documetation explaining it) - where does "lookup('file',...)" looks indeed.
I have a structure:
group_vars/all.yml
pgsql_key
pgsql_key.pub
roles/pgsql/tasks/main.yml
site.yml
under all.yml I have var defined:
...
pg
Michael,
I am getting a similar issue on 1.4.3
I think the issue is that this version of Ansible does not support this
filter. What version was this filter implemented?
On Wednesday, April 23, 2014 5:09:46 AM UTC-7, Michael DeHaan wrote:
>
> Sounds like the filter failed to parse your rege
I just tried to run my playbook with --force-handlers and did CTRL+C: it
stopped it right away and the handlers were not notified.
Does it work for you?
I use ansible 1.6.7
Thanks.
On Wed, Jul 23, 2014 at 9:53 AM, Michael Palumbo <
michael.palumb...@gmail.com> wrote:
> Does that also work when
Yes, use hostvars.localhost.lmongo.stdout
On 23 July 2014 15:51, Benjamin Bauer wrote:
> I'm writing a playbook to restore the latest backup of my DB on all my
> Database servers. This is done in two main steps:
>
>1. figure out which backup is the latest (once)
>2. download that file t
On 23 July 2014 18:01, Govinda Fichtner
wrote:
> Is this already implemented in a current Ansible version?
Yes, instead of e.g. a group_vars/groupname.yml, you can now have
group_vars/groupname/ directory with multiple files in it.
--
You received this message because you are subscribed to
Is this already implemented in a current Ansible version?
Am Freitag, 12. April 2013 16:54:10 UTC+2 schrieb Michael DeHaan:
>
> I'm fine with this, we should make it also ignore file extensions at the
> same time.
>
>
>
>
> On Fri, Apr 12, 2013 at 9:56 AM, Serge van Ginderachter <
> se...@vangind
In my inventory I have:
[buildserver]
localhost ansible_connection=local
But the playbooks associated with [buildserver] all fail with "undefined"
variables; all the group_vars associated with the playbook are seemingly
unset for a localhost.
Ansible also seems to be very adroit at figuring o
Hi all,
I'm fine tuning roles for our farm.
we started with group_vars and host_vars, but it results dispersive, lot of
file in group_vars and more important number of files in host_vars.
We changed all to use vars_files, and now we have 2 files, one for
credentials and one for all the other v
Thank you for the suggestions. I have implemented and tested them and it's
all working great.
--
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 ansible-projec
Does that also work when one task fails and the playbook stops?
Does it work with the tasks of the roles as well?
On Wed, Jul 23, 2014 at 8:30 AM, Michael DeHaan wrote:
> When you kill a playbook you can use --force-handlers to make sure
> handlers on a repeated runs.
>
>
> On Tue, Jul 22, 201
Update:
I figured it out:
---
- hosts: localhost
tasks:
- name: get filename of latest mongo backup
shell: s3cmd ls s3://my_backup_bucket/production/ | awk
'NF{p=$4}END{print p}'
register: lmongo
- set_fact: last_mongo="{{lmongo.stdout}}"
- hosts: db
tasks:
- debug:
I'm writing a playbook to restore the latest backup of my DB on all my
Database servers. This is done in two main steps:
1. figure out which backup is the latest (once)
2. download that file to all DB servers
3. ...and run the restore
While step 2 and 3 are straight forward, my prob
When you kill a playbook you can use --force-handlers to make sure handlers
on a repeated runs.
On Tue, Jul 22, 2014 at 5:41 PM, Michael Palumbo <
michael.palumb...@gmail.com> wrote:
> So there is no solution to avoid being stuck on the following? It happens
> to me often when I am upgrading the
Yep, use roles to describe the states and behaviors, and include those
roles in multiple playbooks as appropriate.
If you have a configure.yml as a playbook, the "provision.yml" could just
include it as the very last line of the playbook, making it easy to run
things together using the "add_hosts"
It doesn't need it, actually.
Exact count works by making sure there are X number of instances running
with the tag specified by "count_tag".
Thus if count_tag is "webservers" and you have 5 running and exact count in
200, it will add 195 webservers.
Sources, for those interested, live here:
htt
We maintain the PyPi package and run our own PPA now for Ubuntu, and we're
closing in touch with the Fedora folks to keep EPEL up to date.
If you want the latest version and are comfortable installing/updating from
pip, it will always be up to date and useful regardless of distro.
On Tue, Jul
Hello ansible group,
I would like to ask you for some advices related with dynamic inventories
and variables.
I read Dynamic Inventories documentation from asnbile however still don't
see clear picture about solution.
So far ansible-tower is also not solution which I can focus on.
So quick 'my
42 matches
Mail list logo