If role A depends on role B and you want to override the default var of
role B by role A, you can define this var in vars/main.yml of role A. I use
this solution in ansible 2.0.2.0.
On Friday, April 29, 2016 at 9:42:54 PM UTC+8, Asif Nataliya wrote:
>
> Exactly the same problem I am also facin
Yea I just read the win_xaddomain.ps1 and found out why it's causing the
error. I think Trond win_dsc5 module generator is expecting the keys and
values of old ansible version and you guys added these new value or
something and failing it.
I comment out the line below and now the script just ha
Thank you.
вторник, 17 мая 2016 г., 20:38:09 UTC+3 пользователь Brian Coca написал:
>
> no, that will tag all tasks in the role with 'sometag'. The functionality
> does not current exist to select a tag on role import.
>
> On Tue, May 17, 2016 at 1:36 PM, Arbab Nazar > wrote:
>
>> I think you ar
The new pywinrm stuff I've been working on (0.2.0rc3) supports on-the-fly
kerberos principal switching across N domains if you have valid tickets for
them all on a system that defaults to collection-typed credential caching
(I've only tested on OSX so far- not sure what the default ccache type i
Doesn't work that way today, but that sounds like an awesome enhancement to
the facts module... #lowhangingfruit
On Wednesday, May 18, 2016 at 1:59:48 PM UTC-7, Андрей Круглов wrote:
>
> Hi,
>
> I have a lot of centos7 webservers with firewalld onboard and a lot of
> centos7 webservers with ipt
Yeah, looks like those modules aren't properly handling _ansible_X internal
module args.
On Wednesday, May 18, 2016 at 2:45:47 PM UTC-7, Phyo Shwe wrote:
>
> Turns out I was using the devel version of ansbile and that was causing
> the error. Now I am on Ansible 2.0.2 and get a new error.
>
> TA
Awesome, thanks for poking at it!
Waiting for another requests-kerberos release to include a bugfix I made
for long-running kerberos ops (should happen today or tomorrow), and
Alexey's final code review on some Unicode issues I've been cleaning up.
I'd expect sometime in the next week or so.
Hi,
I have been testing ansible along with environment variables, since we
utilize environment variables for various deployment reasons, I notice that
on ansible will pick up any environment variables defined under .bashrc as
thats the file sourced by /bin/login.
But under KSH, the profile fil
Turns out I was using the devel version of ansbile and that was causing the
error. Now I am on Ansible 2.0.2 and get a new error.
TASK [Init Domain]
*
fatal: [10.255.10.20]: FAILED! => {"Attributes": [
"DomainAdministratorCredential_pas
when using ec2.results in a task i'm getting:
[DEPRECATION WARNING]: Skipping task due to undefined Error, in the future
this will be a fatal error.: 'dict object' has no attribute
'results'.
using ansible 2.0.2
--
You received this message because you are subscribed to the Google Groups
"Ansi
boto (2.40.0) ansible 2.0.2.0
When running this and trying to add multiple hosts to a new group for in
memory inventory it only adding the first ec2 instance. On the wait for ssh
task it does wait for all ec2 instances just not on the add host task.
- hosts: ec2_instances
connection: local
Looks pretty good so far, tried a few playbooks and the ntlm auth. So far
no issues. Any idea when the stable release is likely to be?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails
I have tried figuring this out for a few hours now and can't get it
working..
Does anyone know how to properly format this so the code isn't so wide?
- hosts: 127.0.0.1
connection: local
gather_facts: no
roles:
- { role: vsphere-guest, vm_name: '{{server1_hostname}}', ip_addr:
'{{
Hi,
I have a lot of centos7 webservers with firewalld onboard and a lot of
centos7 webservers with iptables onboard and i need to write role
webserves, some parts are differ to different firewall type.
Is a simple way to get fact about firewall presence (installed or not) and
its type (firewal
Ansible: 2.0.0.2
OS: CentOS 7.2
Is it possible to use a single Ansible controller for multiple Windows
domains? The scenario requires the use of domain accounts for
authentication on 3 separate domains.
I have configured the krb5.conf accordingly but as yet cannot get the
Ansible controller to
boto (2.40.0) ansible 2.0.2.0
When running this and trying to add multiple hosts to a new group for in
memory inventory it only adding the first ec2 instance. On the wait for ssh
task it does wait for all ec2 instances just not on the add host task.
- hosts: ec2_instances
connection: local
Hi,
I am testing out ansible win_dsc module that Trond wrote. Everything worked
great except when I start using the xActiveDirectory modules. I used
Trond's ansible module generator to get the modules. I didn't get any error
and I see all the modules exported. When I run the play book I get the
I'm trying to figure out why this is only adding one hosts after
registering ec2
Ansible 2.0.2
- name: Add hosts group temporary inventory group
add_host: name={{ item.private_ip }} groups=dynamic
with_items: "{{ ec2.instances }}"
--
You received this message because you are subscribed to t
boto (2.40.0) ansible 2.0.2.0
When running this and trying to add multiple hosts to a new group for in
memory inventory it only adding the first ec2 instance. On the wait for ssh
task it does wait for all ec2 instances just not on the add host task.
- hosts: ec2_instances
connection: local
Hi,
regex_replace in local_action stopped working after upgrade to 2.0.2. it
worked fine in 1.9.2
the same expression works fine when executed on remote hosts .
is there something missing in our upgrade maybe?
i would appreciate any suggestions.
Also , this is just an example. i
Let's see my use case
- name: Run Nginx container
docker:
name: nginx
image: nginx
state: started
ports:
- "80:80"
- "443:443"
- name: Add host nginx container
add_host:
name: nginx
groups: nginx_container
ansible_connection: docke
I've been trying different methods, and trying to escape the characters
'\', but I cannot seem to figure out how to pass this whole command through.
I haven't really turned up anything online either.
I've tested the command locally on my admin server and it works as stated,
but not with an
Hi all, we're happy to announce that RC3 for 2.1.0 is now available for
testing.
This updated release candidate fixes a few additional bugs, including (but
not limited to):
* Fixed several bugs to make the execution of multiple plays (when failures
occur)
more closely reproduce the behavior fro
Hi Bernhard, sorry about that. That's been fixed now.
James Cammarata
Ansible Lead/Sr. Principal Software Engineer
Ansible by Red Hat
twitter: @thejimic, github: jimi-c
On Wed, May 18, 2016 at 7:05 AM, Bernhard L. wrote:
> Hi,
>
> $ git clone https://github.com/ansible/ansible.git
>> $ cd ansi
instead of shell/ls, you can use the 'find' module to create the list and
feed that to the 'fetch' module.
as for rsync, the syncronize module can handle many of the same scenarios.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible
I am wondering if a remote fileglob mechanism has been added for fetch. If
not, I'll use Daniel's solution from above.
Thanks!
Joanna
On Monday, October 29, 2012 at 7:26:50 PM UTC-5, Michael DeHaan wrote:
>
> I prefer Daniel's approach in this case, but I think we can also make
> syntax easier
>
>
>
> "${{'{'}}{{ item.name }}_if}"
>
>
Ah, stupid me. I should have read the documentation correctly. Will
definitely try this, thanks.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving e
On 18.05.16 15:43 Simon Szustkowski wrote:
> So i consulted the jinja documentation which specified that i could just
> escape characters with '
> The second attempt was:
> "$'{'{{ item.name }}_if}"
I found this:
http://jinja.pocoo.org/docs/dev/templates/#escaping
Which says:
The easiest way
On 18.05.16 16:12 antony.periga...@polyconseil.fr wrote:
> There is a bug ? a specific order rule ? a random rule ?
Does this help?
https://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable
Johannes
--
You received this message because you are
On 18. mai 2016 17:08, 'J Hawkesworth' via Ansible Project wrote:
We've discovered recently that having users logged in during deployments
sometimes causes failures due to file and process locking.
If anyone has a good way of kicking off interactive users (from windows
hosts) via ansible please
Glad that helps.
We've discovered recently that having users logged in during deployments
sometimes causes failures due to file and process locking.
If anyone has a good way of kicking off interactive users (from windows
hosts) via ansible please share it.
Jon
On Wednesday, May 18, 2016 at 3:
Hi Mick,
At the moment you'll need a python 2 installation your linux machine - see
the blue boxes
here
http://docs.ansible.com/ansible/intro_installation.html#managed-node-requirements
- there's an example of using 'raw' to put a python 2 and simplejson on
there.
I know the developers are
Yes, that is exactly what I was looking for. Just a way to inform the user
that a new software deployment is about to begin.
On Wed, May 18, 2016 at 4:22 AM, 'J Hawkesworth' via Ansible Project <
ansible-project@googlegroups.com> wrote:
> May be worth taking a step back and letting us know what
Hi Mark
you can add a pause task -
see http://docs.ansible.com/ansible/pause_module.html
It might suit your needs in this case to put it into a role so you can pass
in an appropriate pause
All the best,
Jon
On Wednesday, May 18, 2016 at 3:45:16 PM UTC+1, Mark Matthews wrote:
>
> Hi
>
>
>
>
Hi
Not sure if you able to assist with this question, but is it at all
possible to setup a ‘wait’ function between roles in a playbook?
So if I have the following playbook:
---
- name: Config Web Servers
hosts: all
roles:
- web_common
- win_update
- wintech_doma
Hello,
I do many tests and I don't understand the group_vars load order in ansible
2. With ansible 1 vars are load in my playbook order. But with ansible 2 it
seems to be totally random.
For example:
I have 2 groups:
group_vars# tree
├── all.yml
├── site_plo.yml
toto: foo
ahh thanks for the reminder... will take a look at it this week yet
On Tue, May 17, 2016 at 11:44 PM, Luke Russell
wrote:
> Hi Peter,
>
> Is there any follow up on this? Do you need anything further?
>
>
> On Friday, April 15, 2016 at 10:13:07 PM UTC+10, Peter Sprygada wrote:
>>
>> Hi Luke, We d
Hi,
i want to create a template which should result in the following output:
1. custommark4 masq 1 PREROUTING inface "${openvpn_if}"
Here, the value "openvpn" should be read from a variable. I have some
problems with creating proper jinja2-Syntax because of the curly brackets
which are al
Look at the group_names variable. It contains a list of all groups the
host is in.
On Wednesday, May 18, 2016, 'Chris Short' via Ansible Project <
ansible-project@googlegroups.com> wrote:
> I would like to use our inventory group names as a variable in a template
> file. Has anyone had any succe
I would like to use our inventory group names as a variable in a template
file. Has anyone had any success doing this?
--
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
I am trying to ping a linux machine having python version 3.5.1+, but I am
facing the following error.
ansible -m ping linux1
1.1.1.2 | FAILED! => {
"changed": false,
"failed": true,
"msg": "Traceback (most recent call last):\r\n File
\"//test/log/tmp/ansible-tmp-1463555484.41-
On Tuesday, 17 May 2016 17:22:33 UTC+1, Alex Willmer wrote:
>
> I'm trying to start-up multiple VMs in Vagrant, using Ansible as the
> provisioner. However when I run vagrant up only the first VM (foo) gets the
> template applied. The second (bar) misreports that the destination file is
> alrea
May be worth taking a step back and letting us know what you are trying to
achieve?
If you are trying to alert users you might be able to do something like
this:
ansible windowsboxes -m raw -a 'msg "*" /SERVER:LOCALHOST /W /TIME:2 "This
is a test message, please ignore"'
Hope this helps,
Jon
Is it possbile to use lists and dictionaries in more layers like:
vars:
users:
- unsername: jon
ssh: True
pages:
- pagename: page1
documentroot: /home/page1
- pagename: page2
documentroot: /home/page2
- unsername: jane
ssh: False
44 matches
Mail list logo