[ansible-project] django_manage with custom django manage commands.

2015-12-03 Thread anoop . kolari
Does ansible 1.7.1 supports execution of custom django manage commands with ansible django_manage module? -- = DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this

[ansible-project] Re: Ansible createsuperuser with django_manage module.

2015-12-03 Thread anoop . kolari
Thanks Chris. Instead of the solution you have suggested, I'm tried to create a custom django manage command. But when i invoked this from ansible through django_manage, its throws an error like the one below. fatal: [djangoskeleton-local.com] => failed to parse:

[ansible-project] how to abort ansible execution in callback

2015-12-03 Thread Leon Xie
hi all, I want to abort entire ansible execution in a callback file. how could I implement that? The below code doesn't work: def runner_on_failed(self, host, res, ignore_errors=False): sys.exit(1) thanks a lot in advance. -- You received this message because you are subscribed to the

[ansible-project] Expand group_name in a loop with_items

2015-12-03 Thread Manuel Jiménez
Hello, I need to expand the group_name for each host in the iteration because I would like to have different folders for each group. So if the playbook is doing frontend1 I wan't to access to frontends templates Example: Inventory [frontend1] 1.2.3.4 [frontend2] 1.2.3.5 [backend1] 2.3.4.5

[ansible-project] unarchive fails?!

2015-12-03 Thread Christian Schmitt
Hello, currently I try to unarchive a file via ansible however I always get the following: msg: Failed to find handler to unarchive. Make sure the required command to extract the file is installed. Currently my Machine is a OS X 10.11 and my Target machine a CentOS 7. However I have another

Re: [ansible-project] Re: ansible didn't stop execution upon a task failure

2015-12-03 Thread Leon Xie
thanks a lot for your reply. On Tuesday, December 1, 2015 at 10:22:42 AM UTC+8, Brian Coca wrote: > > I don't know, those options work for me. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] Hipchat module not compatible with hipchat API v2?

2015-12-03 Thread wanna know
Do you have an example of your hipchat playbook? -- 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

[ansible-project] Re: Get IP Address of server

2015-12-03 Thread saikrishnakhanday
Andrew Edelstein, am trying to get only IP addr and I have used " ansible_default_ipv4.address " and its working. Thanks for sharing additional information on this. Cheers! On Wednesday, December 2, 2015 at 11:12:03 AM UTC-6, saikrish...@gmail.com wrote: > > Can any one please help me how

[ansible-project] pressed late_command ansibe-pull

2015-12-03 Thread Eric Keller
Hi there, I am using foreman for setting up some Ubuntu clients, using ansible as configuration management. I was struggeling with preseed late_command and ansible-pull, that's why I would like to post about a working solution: ``` d-i preseed/late_command string \ echo 'GIT_SSL_NO_VERIFY=true

[ansible-project] Retrieve group children

2015-12-03 Thread Laurent DEVIGNES
I don't know how to retrieve simply group children I have this structure [group1] foo1 foo2 [group2] bar1 bar2 [group3] baz1 baz2 [MetaGroupA:children] group1 group2 [MetaGroupB:children] group3 For some goup_vars, I just want to loop for each group of MetaGroups, but don't want to loop on

Re: [ansible-project] Re: ansible2.0 expect module not working

2015-12-03 Thread Toshio Kuratomi
What version of pexpect are the two of you using? On Thu, Dec 3, 2015 at 6:52 AM, Michele Kappa wrote: > Exactly the same is happening over here, trying to use expect, having > installed the pexpect package earlier in the role tasks. Here is the - > of ansible,

Re: [ansible-project] Expand group_name in a loop with_items

2015-12-03 Thread Manuel Jimenez
Fixed with: - ../templates/cron/{{ group_names[1] }}/test_cron.j2 2015-12-03 12:57 GMT+01:00 Manuel Jiménez : > Hello, > I need to expand the group_name for each host in the iteration because I > would like to have different folders for each group. > > So if

[ansible-project] Re: checking java process

2015-12-03 Thread rup
We did it like this: - name: Check for previous running Wildfly instances shell: ps -ef | grep jboss | grep java | grep -v activemq | grep -v /bin/sh | grep -v grep | awk '{print $2}' register: ps_result - debug: msg="{{ps_result.stdout}}" - debug: msg="{{ps_result.stderr}}" We are also

[ansible-project] Re: Reusing a set of taks across many roles

2015-12-03 Thread rup
Where would you "store" such a file? At what point in your directory structure? On Saturday, November 21, 2015 at 11:01:49 AM UTC-7, Markus Ellers wrote: > > hi, > > you could put these tasks in a separate yml file and include this file > whereever you need it. > -- You received this message

Re: [ansible-project] unarchive fails?!

2015-12-03 Thread Toshio Kuratomi
Bit more information like what ansible version you're using and information about the archive you're operating on would be helpful. Here's some troubleshooting that might be helpful: * Ansible first looks for a gtar program and then a tar program in the user's path. On centos7, I imagine htose

[ansible-project] Ansible fails with deployment_type assertion

2015-12-03 Thread Suryaveer Chauhan
Hi All, I am trying to install OpenShift Origin V3 (following this ) using ansible and it fails with following error: TASK: [openshift_facts | Ensure PyYaml is installed] ** ok: [192.168.144.132] =>

Re: [ansible-project] Re: ansible2.0 expect module not working

2015-12-03 Thread Karan Singh
i have updated pexpect version to 4.0.1 and it worked. On Thu, Dec 3, 2015 at 6:19 PM, Toshio Kuratomi wrote: > What version of pexpect are the two of you using? > > On Thu, Dec 3, 2015 at 6:52 AM, Michele Kappa > wrote: > > Exactly the same is

Re: [ansible-project] pressed late_command ansibe-pull

2015-12-03 Thread Brian Coca
You could also use debconf module to deal with preseeding. -- 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

Re: [ansible-project] Retrieve group children

2015-12-03 Thread Andrew Edelstein
They don't work that way. [MetaGroupA:chldren] group1 group2 is effectively [MetaGroupA] foo1 foo2 bar1 bar2 So trying to loop over MetaGroupA WILL loop over all the hosts in the child groups. On Thu, Dec 3, 2015 at 4:41 AM, Laurent DEVIGNES wrote: > I don't know how to

[ansible-project] Re: ansible2.0 expect module not working

2015-12-03 Thread Michele Kappa
Exactly the same is happening over here, trying to use expect, having installed the pexpect package earlier in the role tasks. Here is the - of ansible, trying to install a gitlab ci runner: fatal: [xxx.yyy.zzz]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args":

Re: [ansible-project] Ansible createsuperuser with django_manage module.

2015-12-03 Thread Chris Church
This is really more of a Django issue than an Ansible one. It's most likely creating the user with an unusable password ("*"). There isn't a way with the built-in createsuperuser command to set a password. You can find one approach that addresses this problem at

Re: [ansible-project] copy module: fail if remote file exists and is different from source?

2015-12-03 Thread Brian Coca
you could just use stat module to check the file remotely (you would also get hash to compare to local file) On Fri, Nov 27, 2015 at 1:48 PM, nusenu wrote: >> is there an (easy) way to make the copy module [1] fail if the remote >> file exists and is different from the

[ansible-project] understanding fetch module's security implications

2015-12-03 Thread nusenu
Hi, I consider the ansible host as trusted, the target server that is managed with ansible is considered less trusted (it might start attacks against the ansible host). Does ansible's security design match that threat model in general? Given the following fetch module example: - fetch: src={{

[ansible-project] Ansible playbook-wide variable?

2015-12-03 Thread Hristo Stoyanov
Can anyone help : http://stackoverflow.com/questions/33992153/ansible-playbook-wide-variable Thanks -- 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

Re: [ansible-project] Template file location best practice?

2015-12-03 Thread Brian Coca
symlinks? submodules? both would work transparent to both devs and the deployment. On Thu, Dec 3, 2015 at 5:42 PM, Brian Jones wrote: > Where should I locate files that Ansible template steps need? My developers > want to locate the files next to their Java code. I want the

[ansible-project] Template file location best practice?

2015-12-03 Thread Brian Jones
Where should I locate files that Ansible template steps need? My developers want to locate the files next to their Java code. I want the template files located in the Ansible source repository under the roles/name/templates directories. If we optimize for developers, then when I deploy, I'll

Re: [ansible-project] Template file location best practice?

2015-12-03 Thread Brian Coca
git allows you to check in symlinks and preserves them on checkout On Thu, Dec 3, 2015 at 6:07 PM, Brian Jones wrote: > If we used symlinks, we would need a script to create them after checkout. > This however would not work on windows. So symlinks won't work for us. > > Git

Re: [ansible-project] Template file location best practice?

2015-12-03 Thread Brian Jones
If we used symlinks, we would need a script to create them after checkout. This however would not work on windows. So symlinks won't work for us. Git submodules might be a possibility but every time I've read about them the resulting complexities seemed to outweigh the benefits. On Thursday,