Good day!
Is there any method to force ansible to show diffs always?
I'm looking for config options in ansible.cfg
Could not find such an option in docs.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and sto
Hi,
looks like you are having an application deployment problem and not a ssh
key problem.
Have you thought about creating for example an operating system package
like rpm or deb out of your application instead of doing a got checkout
deployment?
If you are using a ci server by chance like Jenk
Hi James,
Have you set the ansible configuration file's (ansible.cfg) roles_path
default setting?
See: https://docs.ansible.com/intro_configuration.html#roles-path
If you are following the best practices documented
(https://docs.ansible.com/intro_configuration.html#roles-path), it should
be pu
this is not an existing feature
--
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 ansible-project+unsubscr...@googlegroups.com.
To post to t
That is normally a symptom of a incomplete or broken install, try
removing all versions and reinstalling.
--
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 a
that is not currently a feature.
--
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 ansible-project+unsubscr...@googlegroups.com.
To post to t
Within the groups there is also a order (which is not documented in
that paragraph above), 'all' is the least precedence, and then groups
in the order read/loaded, so child groups overwrite parent groups,
etc.
--
Brian Coca
--
You received this message because you are subscribed to the Googl
Creatign a wrapper around the powershell ssh/scp module is a very good
idea. We should get on that.
win_package simply takes a UNCpath/url/local path to install the package.
It won't directly solve your problem as far as I can see.
On Thursday, June 25, 2015 at 5:04:46 PM UTC+2, priya.n...@gmai
sudo_user is the user you become, not the user executing sudo, remove
it and it will default to root or set sudo_user: root
I know this is confusing if you know about the sudo environment
variables that is why we deprecated this syntax in favor of
become_user: in newer versions.
--
Brian Coca
Awesome, that worked! I need to work offline, so probably one of the
previously downloaded dependencies haven't been up to date. Collecting
everything from scratch
pip install --download Ansible\Downloads ansible --no-wheel --proxy=my.proxy
.de:8080
and reinstalling worked.
Cheers,
Jan
On F
Hi,
Thanks for the info. I hadn't looked at those configs, though we can only
change the configuration on certain environments.
My layout is pretty straightforward
.
├── group_vars
│ └── all.yml
└── roles
│ ├── roleA
│ ├── roleB
│ └── shared_roles
│ ├── roleC
│ └── roleD
├─
Group vars can sit next to your inventory or next to your playbook. Looks
like your current groupvars are evaluated because they sit next to yout
root-dir playbooks.
You can try to put them next to your inventory so that they'll be evaluated
for every pkaybook that's run with that inventory.
On F
Ok that makes sense but causes a problem for my layout. I have
.
├── group_vars
│ ├── all.yml
│ ├── groupA.yml
│ ├── groupB.yml
│ └── groupC.yml
├── inventory
│ └── ec2
│ ├── eu-west
│ │ ├── inventoryA
│ │ └── inventoryB
│ └── us-east
│ ├── inventory
Thanks for confirming, Brian.
After more thought, I've decided to invoke the rds module with "wait: no"
(the default value) and then add a task to poll until all newly spun-up
instances are in the "available" state before performing other operations
on them.
-Baraa
On Friday, June 26, 2015 at
I have a task that installs PHP and Perl modules against a group of
servers. Servers w/ the word "batch" in their hostname run both Perl and
PHP tasks (remove Perl tasks for simplicity). It seems the "Set PHP status
success" task runs against machines w/ the word "batch" in them. ANy way I
can
There was another thread about that yesterday. No good option that i know
of. You can try to create a link to your var files inside each invetory, or
write another inventory script that includes these files.
On Fri, Jun 26, 2015, 18:28 James Morgan wrote:
> Ok that makes sense but causes a probl
Ok,
I think i'd prefer more playbooks in the playbook_dir rather than
resorting to symlinks. Less likely to confuse or go wrong.
Cheers for the info
J
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and st
when runs for EACH item from with_items, so you cannot use it to avoid
undefined with_items, but you can do this:
with_dict: deploy_modules_php|default({})
which will return an empty dict, which will also skip the loops
On Fri, Jun 26, 2015 at 11:49 AM, Samnang Sen wrote:
> I have a task that i
that won't work as you think, its appending a commas separated string
as an item of the other list, not merging lists, you want something
like this:
common_rpm_deps: "{{[ gcc, git, python-devel, python-tox,
python-testrepository, python-mock, python-pip python-testscenarios,
python-oslo]|union(h
Can we get that order documented?
--David Reagan
On Fri, Jun 26, 2015 at 6:22 AM, Brian Coca wrote:
> Within the groups there is also a order (which is not documented in
> that paragraph above), 'all' is the least precedence, and then groups
> in the order read/loaded, so child groups overwrite
copy should fail, that is a bug, please open a PR
just curious, why not let unarchive copy the file?
--
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 e
There are a few of ways around this, you can use the 'boot script'
feature and pass it a script that sets the IP, use a dhcp server or
logon using the template IP and update the networking config, restart
it and now connect with the new info (this last ones limits you to
only provisioning one serve
I would be open to a patch for the module to use an alternative if it
is not present.
--
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 ansible
Discussed
here: https://groups.google.com/forum/#!topic/ansible-project/T9RWNQbLRWs
--
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-project+unsubscr.
But the dictionary isn't empty. I populate it for hosts w/ the word "batch."
When it does run against a server w/o the word batch, "Install PHP modules"
is skipped because of the when.
- name: Install PHP modules
command: sudo rpm -Uvh {{ rpm_repository }}/aria-{{ item.key }}-{{
item.value.sv
So vars plugins have to be specified per play, like 'include_vars:' do? If
so, no savings there.
An inventory script would be pretty good as it would be a write once, then
stays the same for every extra inventory.
Can you clarify how it might work?
This command turns will output JSON from the
Some of the variables in the all.yml are also templated from other
variables - would they be parsed properly if coming in from an inventory
script?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop rece
sorry, then I don't understand the question.
--
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 ansible-project+unsubscr...@googlegroups.com.
To
Hi guys,
I solved the issue with the following adjustments:
- name: Sending Stash to Sensu - {{ item }}
uri:
url=http://10.0.0.8:4567/stashes
method=POST
body_format=json
body='{"path":"silence/{{ item }}","content":{"reason":"Automatic
Scale Down"},"expi
We've got a module we'd love your help reviewing:
https://github.com/ansible/ansible-modules-extras/pull/554
Feel free to take it for a spin and leave feedback in the pull request. Thanks!
--g
--
Greg DeKoenigsberg
Ansible Community Guy
Find out why SD Times named Ansible
their #1 Company to
Hi !
I need a suggestion from you to solve a problem I'm facing, here it is...
The problem:
I have a ElasticSearch cluster composed of 6 nodes. During the non work
hours I would like to substitute 4 of those 6 ec2 instance for a different
server (cheaper instance). The main problem is: How can I
Our application TIER consist 50 servers managed by Ansible that need to be
configured to speak with 2 backend servers.
# /etc/app.cfg :
config_server={{ db_server_address }}
We need half of the cluster config to point to bd1.example.com and other
half db2.example.com .
Any thoughts ?
--
Yo
You need to wrap it in an 'all' group, yes. The output should look like
this:
{
"all": {
"vars": {
..your vars here..
}
}
}
And templates are evaluated when used, so the vars can be templated.
On Fri, Jun 26, 2015 at 8:05 PM ddffgpmfn wrote:
> S
many ways:
- since i normally have a counter on servers 'app01 -app04' you can do
a mod 2 on the server id and put one address or the other depending on
the result.
- you can run the mod2 vs the position of the server in the group it belongs in.
- you can create 2 groups and split the servers ma
How does one request a Feature Request for the Galaxy site?
I'd like some additional information on Role Statistics
- Download count
- Last Updated Date/Actively Maintained
Also better search capabilities would be nice, if I search for a term, pull
up related Roles
Example:
fqdn or fully qual
On Fri, Jun 26, 2015 at 3:57 PM, Phill Pafford wrote:
> How does one request a Feature Request for the Galaxy site?
Currently, send me a note. :)
All of these features are being tracked internally, waiting for us to
hire a Galaxy Engineer to work on them full time. (We're close on this
one, so s
http://docs.ansible.com/faq.html#how-can-i-set-the-path-or-any-other-environment-variable-for-a-task-or-entire-playbook
i get this. ^^ ..but how do i set environment variables for a role? i
want it associated with a role and not a playbook.
comment: it seems environment variables are not fir
I'm not sure what you are asking, so I'll respond to the 2
interpretations I have.
1) add environment variables to all tasks in a role: use environment:
directive in the role definition, it takes a dictionary from which it
converts keys into environment variables and assigns the their
dictionary v
i tried that already. `environment` does not work in role definition. I'm
on 1.9.2.
- hosts:
- localhost
gather_facts: false
environment:
# ENVVAR: WORKS
roles:
I have, and and still are, struggling with this as well. Our inventory is
very similar to yours. We have three AWS environments, and dozens of other
on-prem environments. For the AWS we need to share a bunch of variables.
Putting those in playbook group_vars does not work because the are only fo
I simply copied the 2.0 uir.py into my ./modules. It supports
body_format=json which will convert the body dict into json as well as set
the appropriate headers.
Indeed I have done this for several modules that are scheduled for 2.0 or
are pending PRs. Ansible is incredibly flexible in this man
I should have been more thorough in my previous reply, when I mentioned it
I was trying to point out that was causing the problem.
Disabling the option so it defaults to sh or explicitly specifying sh makes
the problem go away.
On Friday, June 26, 2015 at 6:39:02 AM UTC+2, Brian Coca wrote:
>
>
42 matches
Mail list logo