Re: [ansible-project] easy_install complains about 'state'

2015-06-11 Thread Barry Kaplan
On Wednesday, June 10, 2015 at 6:23:29 PM UTC+5:30, Matt Martz wrote: > > Per the docs, the state param exists since version 2.0. At this time > version 2.0 has not been released. > Whoops. Sorry. Gotta pay more attention to the versions. It would be nice to have docs pages per version. --

[ansible-project] Re: add_host madness... or role ...singletons??? what?

2015-06-11 Thread Dmitry Makovey
tested by moving add_host from role over to "tasks" - same result. Sounds like I'm missing the point someplace, but where? -- 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

[ansible-project] add_host madness... or role ...singletons??? what?

2015-06-11 Thread Dmitry Makovey
I've got a playbook in which I'm trying to use add_host to dynamically generate a group of hosts. Here's what I have: \roles \ group_servers \ tasks \ main.yml \ common \ tasks \ main.yml setup.yml ==> ./roles/group_my_servers/tasks/main.yml --- - name: Group My boxes add_h

[ansible-project] --private-key broken???

2015-06-11 Thread Dmitry Makovey
Hi, I'm trying to fire ansible from cron job and am failing as --private-key directive doesn't seem to have effect. I can replicate the issue from CLI as well. So to illustrate: $ ssh -i /home/ansible/.ssh/id_rsa_ansible_key r...@server.com hostname server.com $ /usr/bin/ansible-playbook --pr

[ansible-project] changing remote_tmp from the playbook

2015-06-11 Thread Olivier Lauret
Hello, I have an issue with the remote_tmp parameter from the ansible.cfg that I would like to change from the playbook task. The problem I have is the way I am connecting to the servers, with the different type of users. Here are some example Most of the connections: GenericUserA/AnsibleS

Re: [ansible-project] The API server (galaxy.ansible.com) is not responding,Please try again later.

2015-06-11 Thread Greg DeKoenigsberg
Same command worked for me. Temporary connection issue on your end? --g On Thu, Jun 11, 2015 at 2:04 PM, Prasanna Siriki wrote: > Hello, > > I am trying to install Juniper.junos > > #ansible-galaxy install Juniper.junos > The API server (galaxy.ansible.com) is not responding,Please try again > l

[ansible-project] The API server (galaxy.ansible.com) is not responding,Please try again later.

2015-06-11 Thread Prasanna Siriki
Hello, I am trying to install Juniper.junos #ansible-galaxy install Juniper.junos *The API server (galaxy.ansible.com) is not responding,Please try again later.* I am getting the above error. Regards, Prasanna -- You received this message because you are subscribed to the Google Groups "An

Re: [ansible-project] ERROR: msg: this module requires key=value arguments

2015-06-11 Thread Guy Matz
That did it! Thanks!! On Thu, Jun 11, 2015 at 12:54 PM, Matt Martz wrote: > You could have a problem with the 'command' module in devel in the > ansible-modules-core repo and running ansible 1.9. > > There are changes for ansible 2.0 that impacted the command module in > ansible-modules-core.

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread J Hawkesworth
I think latest devel is only available by cloning from github. I am hoping there will be a 1.9.2 release candidate 2 soon which might include these modules. Jon On Thursday, June 11, 2015 at 5:40:39 PM UTC+1, Slim Slam wrote: > > Since v1.9.2 is not released yet, is there a way to use pip to up

[ansible-project] Re:

2015-06-11 Thread Michael Johnson
This might be a silly question, but what happens when you run that command locally on the target? On Thursday, June 11, 2015 at 8:18:10 AM UTC-7, Guy Matz wrote: > > Hi!! > Having issues with command tasks . . . > > gmatz@fuzzybunny ~/Code/ansible-local $ ansible-playbook --version > ansible-play

Re: [ansible-project] ERROR: msg: this module requires key=value arguments

2015-06-11 Thread Matt Martz
You could have a problem with the 'command' module in devel in the ansible-modules-core repo and running ansible 1.9. There are changes for ansible 2.0 that impacted the command module in ansible-modules-core. So the devel version of the command module is not compatible with ansible 1.9. You mig

[ansible-project] ERROR: msg: this module requires key=value arguments

2015-06-11 Thread Guy Matz
Hi!! Having issues with command tasks . . . gmatz@fuzzybunny ~/Code/ansible-local $ ansible-playbook --version ansible-playbook 1.9.1 (detached HEAD b47d1d7e69) last updated 2015/06/10 17:15:55 (GMT -400) lib/ansible/modules/core: (detached HEAD d6ed6113a7) last updated 2015/06/10 10:07:33 (GMT

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread Slim Slam
Since v1.9.2 is not released yet, is there a way to use pip to upgrade to the latest development version of 1.9.2? J On Thursday, June 11, 2015 at 11:37:59 AM UTC-5, Jake Dupuy wrote: > > I've got a similar issue, I need to get win_file working for one of my > plays. Sounds like upgrade to 1.9.

[ansible-project] Reset mySQL root password

2015-06-11 Thread Abraham Martín
Hello, if I'm not wrong, this functionality is not currently included in the core mysql_user module as you always have to specify the password to connect to the db. Would you accept a pull request to add this feature? Regards, Abraham. -- You received this message because you are subscribed

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread Jake Dupuy
I've got a similar issue, I need to get win_file working for one of my plays. Sounds like upgrade to 1.9.2 should do the trick? On Thursday, June 11, 2015 at 11:27:51 AM UTC-5, Slim Slam wrote: > > If you look back through this thread, you'll see that I unistalled and > then reinstalled Ansibl

Re: [ansible-project] Re: How to use user vars or unset default ones

2015-06-11 Thread Brian Coca
Yes and no, ansible avoids using a login shell, so vars defined for the user that rely on that won't be picked up. Sudo , by default, also removes most vars from the source user and can set it's own vars for the target user, it also does not normally pickup vars that depend on login to be set.

[ansible-project] Re: How to use user vars or unset default ones

2015-06-11 Thread Ivan Garcia
Thanks for your answer Brian. Apart from that I'd really like to know if there's a way to use the user's variables of the user that is specified in the playbook. In my case I'm doing a sudo: yes. Cheers, Ivan El jueves, 11 de junio de 2015, 16:35:50 (UTC+2), Ivan Garcia escribió: > > Hi all, >

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread Slim Slam
If you look back through this thread, you'll see that I unistalled and then reinstalled Ansible. It didn't change anything. The core windows modules work, but not the windows modules in extras. J On Thursday, June 11, 2015 at 11:02:59 AM UTC-5, J Hawkesworth wrote: > > I haven't tried chocolate

[ansible-project] Re: provide app username and password

2015-06-11 Thread richard kappler
I figured it out. -> - user: name=name password=password - command: do something On Thursday, June 11, 2015 at 10:31:54 AM UTC-4, richard kappler wrote: > > How would I provide a username and password for an application? > > Specifically, within a running app to which I am deploying and add-on I

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread J Hawkesworth
I haven't tried chocolatey but I can get win_updates to execute. But my ansible was installed via yum and I'm not on a mac. It does feel like something is stopping ansible from finding parts of itself. Have you upgraded from an older ansible version (or did you start with a fresh 1.9.1 instal

[ansible-project]

2015-06-11 Thread Guy Matz
Hi!! Having issues with command tasks . . . gmatz@fuzzybunny ~/Code/ansible-local $ ansible-playbook --version ansible-playbook 1.9.1 (detached HEAD b47d1d7e69) last updated 2015/06/10 17:15:55 (GMT -400) lib/ansible/modules/core: (detached HEAD d6ed6113a7) last updated 2015/06/10 10:07:33 (GMT

Re: [ansible-project] How to use user vars or unset default ones

2015-06-11 Thread Brian Coca
if you unset LC/LANG variables they default to C/POSIX, so i would actually set them to what you need. On Thu, Jun 11, 2015 at 10:33 AM, Ivan Garcia wrote: > Hi all, > > I'm working to automate some Tomcat deployments and I have a problem with > the enconding. When I start the Tomcat, Ansible use

[ansible-project] Re: Cron job issues

2015-06-11 Thread Colin Phillips
Brian, That's great - thank you! I've made the change and that's just what I'm after. Regards On Thursday, 11 June 2015 15:25:38 UTC+1, Colin Phillips wrote: > > All, > > I'm currently trying to compose a playbook to remove log files that are > older than 90 days and then gzip the remaining f

Re: [ansible-project] Error 401 in Ansible Tower

2015-06-11 Thread Timothy Gerla
Hey Igor, we received your support ticket and will be taking a look momentarily. This mailing list is primarily for Ansible open source discussion so in the future just go ahead and sent Tower questions right to supp...@ansible.com. Thanks and we'll be in touch soon! -Tim On Thu, Jun 11, 2015 at

[ansible-project] How to use user vars or unset default ones

2015-06-11 Thread Ivan Garcia
Hi all, I'm working to automate some Tomcat deployments and I have a problem with the enconding. When I start the Tomcat, Ansible use its default LANG=C and LC_TYPE=C variables and the application is not deployed properly, some characters doesn't appear right. Following you can see the PID in

[ansible-project] provide app username and password

2015-06-11 Thread richard kappler
How would I provide a username and password for an application? Specifically, within a running app to which I am deploying and add-on I need to run a script to verify proper operation of the add-on installation. When the command to run the script is entered, the app asks for a username and pass

[ansible-project] Error 401 in Ansible Tower

2015-06-11 Thread Igor Fedorov
I installed Ansible Tower (2.1.4), it worked fine. I did some initial setup - users, credentials, etc. After a while I got back to this, and could not login in the interface. when I try I see the message: "Failed to access user information. GET returned status: 401" and /var/log/tower/tower_

Re: [ansible-project] ETA on Ansible 2.0 ?

2015-06-11 Thread Greg DeKoenigsberg
The answer is "when it's done", basically. It's a major refactoring effort, and we want to make sure the take the time to find, and fix, the big issues. My personal guess is July, but that's just a guess. --g On Wed, Jun 10, 2015 at 10:39 PM, Slim Slam wrote: > Is there an estimated release dat

Re: [ansible-project] Cron job issues

2015-06-11 Thread Brian Coca
job is the command to execute, here you are making it the same as the cron file itself. You either want to make this a copy (since you already wrote out the cron job) or job='find /var/log/freeradius/radacct/ -mtime +90 -print0 | xargs -0 rm && find /var/log/freeradius/radacct/ -type f -mtime +7 -

[ansible-project] Cron job issues

2015-06-11 Thread Colin Phillips
All, I'm currently trying to compose a playbook to remove log files that are older than 90 days and then gzip the remaining files that are older than 7 days. I'm attempting to use the cron module of Ansible to do this but havign a bit of trouble. Here's what I've done so far: Created a job i

[ansible-project] Re: Dynamic Inventory AWS EC2 + group_vars

2015-06-11 Thread sirkubax
Solved in https://github.com/ansible/ansible/issues/11238 W dniu czwartek, 11 czerwca 2015 14:11:33 UTC+2 użytkownik sirkubax napisał: > > Hi > > ansible 1.9.1 > > > I'd like to load some variables for newly created instances from my static > inventory. > > I do create some EC2 instances with a

Re: [ansible-project] help on dynamic with_dict xxxx.results[0].stat.exists == false

2015-06-11 Thread Brian Coca
you can use sequence, start at 0 and end at list length On Thu, Jun 11, 2015 at 6:36 AM, JohnP wrote: > I think my question is more "fundamental" as > > How can I capture and use the array member number of with_dict in > results[0].stat.exists like on any primitive language as an example below. >

Re: [ansible-project] Getting a handle of ec2-instances

2015-06-11 Thread sirkubax
A quick example - hosts: localhost connection: local gather_facts: False tasks: - name: Provision a set of instances ec2: region: eu-central-1 key_name: some_aws_key group: default instance_type: t2.micro image: ami-accff2b1

[ansible-project] Dynamic Inventory AWS EC2 + group_vars

2015-06-11 Thread sirkubax
Hi ansible 1.9.1 I'd like to load some variables for newly created instances from my static inventory. I do create some EC2 instances with a playbook (as in basic example): *- hosts: localhost* * connection: local* * gather_facts: False* * tasks:* *- name: Provision a set of instance

Re: [ansible-project] help on dynamic with_dict xxxx.results[0].stat.exists == false

2015-06-11 Thread JohnP
I think my question is more "fundamental" as How can I capture and use the array member number of with_dict in results[0].stat.exists like on any primitive language as an example below. #!/bin/bashfor i in 1 2 3 4 5do echo "Welcome $i times"done Sample outputs: Welcome 1 times Welcome

Re: [ansible-project] help on dynamic with_dict xxxx.results[0].stat.exists == false

2015-06-11 Thread benno joy
Hi, i think this can be solved if you can make you ssl_certs a list of dicts and use with_indexed_list http://docs.ansible.com/playbooks_loops.html#id22 On Thu, Jun 11, 2015 at 3:39 PM, JohnP wrote: > Hi Group, > > I am trying to establish a logic on a creating web server self signed > certi

[ansible-project] help on dynamic with_dict xxxx.results[0].stat.exists == false

2015-06-11 Thread JohnP
Hi Group, I am trying to establish a logic on a creating web server self signed certificates. (please note that this issue could be related any other task like depending on files in directories, etc.) Logic is that I would like to create subsequent files (as cert request and the newly signed