Re: [ansible-project] Re: Role dependencies across multiple plays

2013-12-05 Thread James Cammarata
receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- James Cammarata jcammar...@ansibleworks.com Sr. Software Engineer, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- You received

Re: [ansible-project] Repositories only ?

2013-12-08 Thread James Cammarata
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. For more options, visit https://groups.google.com/groups/opt_out. -- James Cammarata jcammar...@ansibleworks.com Sr. Software

Re: [ansible-project] Looking for ideas: secure user management

2013-12-08 Thread James Cammarata
. -- James Cammarata jcammar...@ansibleworks.com Sr. Software Engineer, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- 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

Re: [ansible-project] Variable defaults

2014-01-09 Thread James Cammarata
-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- James Cammarata jcammar...@ansibleworks.com Sr. Software Engineer, AnsibleWorks, Inc. http://www.ansibleworks.com

[ansible-project] Quick Galaxy Update

2014-01-09 Thread James Cammarata
. This work will start at 9 EST, after which we'll send out a follow-up email with a more definitive list of fixed issues. Thanks! -- James Cammarata jcammar...@ansibleworks.com Sr. Software Engineer, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- You received this message because you

[ansible-project] Re: Quick Galaxy Update

2014-01-10 Thread James Cammarata
Just a reminder, maintenance will be starting at 9PM EST. Thanks! On Thu, Jan 9, 2014 at 8:11 PM, James Cammarata jcammar...@ansibleworks.com wrote: Hey all, just a quick Galaxy update. First and foremost, Google+ signups are now working. If you continue to have any problems please let us

[ansible-project] SSH_alt is live

2014-01-15 Thread James Cammarata
/2014/01/15/ssh-connection-upgrades-coming-in-ansible-1-5/ Once again, thanks to Jerome for his incredible work here, and please let us know if you run into any issues with the new connections. Thanks! -- James Cammarata jcammar...@ansibleworks.com Sr. Software Engineer, AnsibleWorks, Inc. http

Re: [ansible-project] SSH_alt is live

2014-01-16 Thread James Cammarata
...@ansibleworks.comwrote: Thanks James Quick update for clarification, we plan to remove the _old before launch of 1.5. So, it's there in case anyone yells before we can fix anything should those happen, basically :) On Wed, Jan 15, 2014 at 5:11 PM, James Cammarata jcammar

Re: [ansible-project] creating json inline

2014-01-20 Thread James Cammarata
. For more options, visit https://groups.google.com/groups/opt_out. -- James Cammarata jcammar...@ansibleworks.com Sr. Software Engineer, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- You received this message because you are subscribed to the Google Groups Ansible Project group

Re: [ansible-project] Storing custom data

2014-01-20 Thread James Cammarata
. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- James Cammarata jcammar

[ansible-project] Galaxy Maintenance - 1/14/2014

2014-01-23 Thread James Cammarata
any questions! -- James Cammarata jcammar...@ansibleworks.com Sr. Software Engineer, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this group and stop receiving emails

Re: [ansible-project] Galaxy Maintenance - 1/14/2014

2014-01-23 Thread James Cammarata
Yes, we have an internal ticket for that, however it will won't be included in this update. On Thu, Jan 23, 2014 at 3:57 PM, Serge van Ginderachter se...@vanginderachter.be wrote: On 23 January 2014 22:50, James Cammarata jcammar...@ansibleworks.comwrote: Thanks, and let us know if you

[ansible-project] Re: Galaxy Maintenance - 1/14/2014

2014-01-24 Thread James Cammarata
Maintenance is starting now. On Thu, Jan 23, 2014 at 3:50 PM, James Cammarata jcammar...@ansibleworks.com wrote: Hi all, we're going to be pushing out some more updates for Galaxy tomorrow night, so the site will be unavailable for a short time starting at 9PM EST. Once the maintenance

[ansible-project] Re: Galaxy Maintenance - 1/14/2014

2014-01-24 Thread James Cammarata
import failures. Let us know if you run into any problems with these new fixes. Thanks! On Fri, Jan 24, 2014 at 8:00 PM, James Cammarata jcammar...@ansibleworks.com wrote: Maintenance is starting now. On Thu, Jan 23, 2014 at 3:50 PM, James Cammarata jcammar...@ansibleworks.com wrote: Hi

Re: [ansible-project] de-duplicating roles

2014-01-30 Thread James Cammarata
. -- James Cammarata jcammar...@ansibleworks.com Sr. Software Engineer, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- 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

Re: [ansible-project] common roles on ansible galaxy

2014-02-11 Thread James Cammarata
If they're common to all of the roles you're writing, best to make the common part a role of its own and use the dependency system we have in place. Just be sure that when you're listing the deps, that you do so in the username.rolename format so that galaxy will properly link them as dependencies

Re: [ansible-project] When ansible1.4.5 will be released?

2014-02-11 Thread James Cammarata
Stan, we are not keeping the core/Tower versions in sync, it's mainly been coincidental that it's worked out that way so far. That said, we will probably be releasing an Ansible 1.4.5 in the near future, to address one reported bug. If you have any further questions, let us know. Thanks! On

[ansible-project] Ansible version 1.4.5 is now available

2014-02-12 Thread James Cammarata
Ansible 1.4.5 is now available, and addresses a local security issue involving fireball/accelerate keys, where those keys (and the directory containing them) might be created with permissions that were too open if the system had a permissive umask set by default. This issue affects controlling

Re: [ansible-project] ansible-galaxy Readme formatting

2014-02-12 Thread James Cammarata
Yes, we can get this included in the next release. On Wed, Feb 12, 2014 at 5:49 PM, James Martin jmar...@basho.com wrote: I spent a fair amount of time writing up documentation for my role(s), only to find that Galaxy doesn't like Markdown's table syntax. For example this is how it looks on

Re: [ansible-project] failed to parse: SUDO-SUCCESS-ugbdmgqomyttgubummftugavvodrnugl when using mysql_user with password lookup

2014-02-17 Thread James Cammarata
Are you using sudo to execute this? In that case, you may be hitting this bug: https://github.com/ansible/ansible/issues/5533 There are pull-requests open to address this, which I will be looking to test today. On Thu, Feb 13, 2014 at 1:00 PM, William Hall-BrandFour w...@brandfour.comwrote:

Re: [ansible-project] New AWS module: ec2_emr

2014-02-20 Thread James Cammarata
Nope, just make sure that you use the ec2 common code to handle things like the authentication tokens/etc. and you should be fine. Just send us the pull request when it's ready. On Thu, Feb 20, 2014 at 3:21 PM, Alexander Popov alexanderpop...@gmail.comwrote: I am developing ec2_emr module to

Re: [ansible-project] s3 module with checksums for multipart uploads

2014-02-24 Thread James Cammarata
checksum. On Thu, Oct 24, 2013 at 6:10 PM, James Cammarata jcamm...@ansibleworks.com wrote: Can you share what the error your receiving back is? On Thu, Oct 24, 2013 at 2:39 AM, Ben Hood 0x6e...@gmail.com wrote: Hi, I'm having an issue with the s3 module in ansible 1.3.3: Files

Re: [ansible-project] s3 module with checksums for multipart uploads

2014-02-25 Thread James Cammarata
. On Mon, Feb 24, 2014 at 11:44 PM, James Cammarata jcammar...@ansible.comwrote: I don't believe so, however you might try the workaround suggested in this github issue: https://github.com/ansible/ansible/issues/5442 On Mon, Feb 24, 2014 at 5:04 PM, Chris Rimondi chris.rimo...@gmail.comwrote

Re: [ansible-project] regexp in assemble module with remote_src=false

2014-03-10 Thread James Cammarata
This is a bug, the action_plugin version (which runs locally) doesn't accept the regexp parameter. Could you please open a github issue for this? Thanks! On Mon, Mar 10, 2014 at 5:36 AM, Marco Corte marcoc...@gmail.com wrote: If I run this playbook against, say, the host pgli10-nm, it exits

Re: [ansible-project] failed to parse: SUDO-SUCCESS-ugbdmgqomyttgubummftugavvodrnugl when using mysql_user with password lookup

2014-03-14 Thread James Cammarata
Really though, this seems like your mysqluser/mysqlpassword variables are incorrect, or the user you're connecting as does not have the proper GRANT permissions to add/edit the user. Can you run other actions with that user/passord? On Fri, Mar 14, 2014 at 9:58 AM, James Cammarata jcammar

Re: [ansible-project] failed to parse: SUDO-SUCCESS-ugbdmgqomyttgubummftugavvodrnugl when using mysql_user with password lookup

2014-03-14 Thread James Cammarata
) File /usr/lib/python2.7/dist-packages/MySQLdb/connections.py, line 36, in defaulterrorhandler raise errorclass, errorvalue _mysql_exceptions.OperationalError: (1396, Operation CREATE USER failed for 'test'@'localhost') On Monday, February 17, 2014 4:11:42 PM UTC, James Cammarata wrote

Re: [ansible-project] failed to parse: SUDO-SUCCESS-ugbdmgqomyttgubummftugavvodrnugl when using mysql_user with password lookup

2014-03-14 Thread James Cammarata
that the file might be local and sure enough it was. Did I miss the part where the file lookup works on local files and not remote files? On Friday, March 14, 2014 3:01:48 PM UTC, James Cammarata wrote: Really though, this seems like your mysqluser/mysqlpassword variables are incorrect

Re: [ansible-project] Sudo issues... again

2014-03-20 Thread James Cammarata
What was the last official release that worked for you? Also, are there any other ansible.cfg settings you've changed from their defaults? On Thu, Mar 20, 2014 at 10:11 AM, Makimoto Marakatti makim...@gmail.comwrote: By the way, I did forget to mention that I tried to give a passwordless sudo

Re: [ansible-project] feature requests for Galaxy

2014-03-31 Thread James Cammarata
Thanks, we'll definitely look at adding these. On Thu, Mar 27, 2014 at 6:06 PM, ra...@future500.nl wrote: Hey all, I've been adding some roles to galaxy, and I'd like to request some features: - I would like to have the roles sorted by alphabet and/or add date on the my roles page - I

Re: [ansible-project] FYI on Ubuntu 14.04 and synchronize module

2014-03-31 Thread James Cammarata
Hi Simon, could you open an issue for this on github? Thanks! On Mon, Mar 31, 2014 at 12:57 PM, Simon Green simonjgr...@me.com wrote: rsync 3.1.0 on Ubuntu 14.04 has a bug that causes an error when coming from rsync 3.0.9 (common on all versions of Ubuntu prior to 14.04) -- You received

Re: [ansible-project] Import Error with custom Python module

2014-03-31 Thread James Cammarata
What is the path to your module? Also, have you checked out http://docs.ansible.com/developing_modules.html to see that your following our instructions for custom module development? On Fri, Mar 28, 2014 at 6:53 AM, Jason Edelman jedelm...@gmail.com wrote: Hi All, I keep getting an

Re: [ansible-project] Ansible conditions and logics

2014-03-31 Thread James Cammarata
If I understand correctly, you're copying the contents of several directories to a central location, removing the old path, and then creating a symlink to the new location? To do that with ansible you'd just need to call the synchronize module to copy the files (or use command/shell to do the

Re: [ansible-project] Tagging a newly created VPC

2014-04-02 Thread James Cammarata
You should use the wait=yes (or wait: yes in the form you've specified above) option to tell Ansible to wait until the VPC is in the available state before returning. On Wed, Apr 2, 2014 at 4:49 AM, Chinmaya Patanaik patanaikchinm...@gmail.com wrote: Hi, I created a vpc using ec2_vpc

Re: [ansible-project] Re: Run role based on local facts - if variable is not defined.

2014-04-03 Thread James Cammarata
The YAML parser may be reading the '' as the line continuation character, so you may need to wrap that in quotes: - { role: test_roleversion, when: ansible_local.apache.version is not defined or module.version ansible_local.apache.version } On Thu, Apr 3, 2014 at 9:29 AM, Marcin Prączko

Re: [ansible-project] Ansible 1.5.4 breaks variables in vars_files

2014-04-04 Thread James Cammarata
This issue was reported the other day and has been fixed in the devel branch: https://github.com/ansible/ansible/issues/6832 You can grab that patch for now if you'd like ( https://github.com/ansible/ansible/commit/9c6dd9f79c6fbed3346b951fc280f30cb6d676ae), which will be included in the next

[ansible-project] Galaxy Maintenance Tonight, 4/4/2014

2014-04-04 Thread James Cammarata
There will be a small maintenance window tonight for Galaxy starting at 10PM EDT to deploy a few bug fixes and the following two major items: 1) All roles starting with ansible-(role-) will be renamed so they no longer contain that string. Also, moving forward, any roles that are created will

[ansible-project] Re: Galaxy Maintenance Tonight, 4/4/2014

2014-04-04 Thread James Cammarata
The maintenance has been completed, please let us know if you experience any issues. Thanks! On Fri, Apr 4, 2014 at 4:30 PM, James Cammarata jcammar...@ansible.comwrote: There will be a small maintenance window tonight for Galaxy starting at 10PM EDT to deploy a few bug fixes

Re: [ansible-project] Specific variable disappears in 1.5.4 ?

2014-04-06 Thread James Cammarata
I'm not quite able to reproduce that on 1.5.4, could you share a small playbook/role that reproduces the issue for you? On Fri, Apr 4, 2014 at 12:01 PM, r...@ytechnologies.nl wrote: In my main playbooks I define a global variable named dns_type, used in multiple roles. It's simply defined

Re: [ansible-project] simple thing that looks difficult: cooking command line for nmap

2014-04-06 Thread James Cammarata
There are a couple of options you could use here. First, you could deploy a custom fact that would give you the CIDR value. Second, you could write a custom jinja2 filter that would accept a netmask (for example, ansible_eth0.ipv4.netmask) and convert that to a CIDR value. On Fri, Apr 4, 2014 at

Re: [ansible-project] cannot open `/etc/sudoers' for reading

2014-04-08 Thread James Cammarata
Do you have selinux enforcing? On Tue, Apr 8, 2014 at 5:13 AM, Makimoto Marakatti makim...@gmail.comwrote: Hi all I'm having a weird issue that I can't figure out: I'm making a backup of /etc/sudoers from client boxes, before templating. ansible complains it has no rights to read

Re: [ansible-project] cannot open `/etc/sudoers' for reading

2014-04-08 Thread James Cammarata
not play ball and straight ssh does. Any help appreciated. On Tuesday, 8 April 2014 15:21:01 UTC+1, James Cammarata wrote: Do you have selinux enforcing? On Tue, Apr 8, 2014 at 5:13 AM, Makimoto Marakatti maki...@gmail.comwrote: Hi all I'm having a weird issue that I can't figure out

Re: [ansible-project] Subversion export via Ansible - strange error msg

2014-04-08 Thread James Cammarata
This appears to be a mistake in the documentation, as the export option was actually added in the devel (1.6) branch. I will get that corrected now, thanks for catching it! On Mon, Apr 7, 2014 at 12:55 PM, Slim Slam slimands...@gmail.com wrote: Using Ansible v1.5.4, I'm trying to do a simple

Re: [ansible-project] apt module is giving me some very strange behavior: sometimes it works, sometimes it says python-apt is not installed

2014-04-08 Thread James Cammarata
Is there any chance you could try this with the 1.5.4 release, or with the most up to date devel branch to see if it's still an issue? If so, please open an issue on github so we can keep track of it. Thanks! On Mon, Apr 7, 2014 at 2:42 PM, chris d chrisd1...@gmail.com wrote: hi everyone,

Re: [ansible-project] We could be wrong, but this one looks like it might be an issue with missing quotes.

2014-04-15 Thread James Cammarata
This looks like it's actually an issue with your indentation and YAML syntax. Your line should be as follows: - name: Pull file from ansible server copy: src=/tmp/{{ freeipaserver_ip }}/var/lib/ipa/replica-info-{{ ansible_hostname }}.gpg dest=/var/lib/ipa/replica-info-{{ ansible_hostname }}.gpg

[ansible-project] Re: 1.5.4: apt dist-upgrade fails with No such file or directory

2014-04-16 Thread James Cammarata
Could you do an md5sum on the module? It should be located at /usr/share/ansible/packaging/apt and should match the following: $ md5sum /usr/share/ansible/packaging/apt 7b3796da213ba4a5affab8413e7579d2 /usr/share/ansible/packaging/apt You might also want to grab the module for that release

Re: [ansible-project] module document variable for check_mode

2014-04-18 Thread James Cammarata
There is a 'notes:' (which should be an array of strings) section in the DOCUMENTATION string, but I don't believe we have anything official in the document generator for that. On Fri, Apr 18, 2014 at 8:39 AM, Jeremy Schulman nwkautoman...@gmail.comwrote: Hi Team, I am writing modules and in

Re: [ansible-project] Re: Relicensing GPLv3 - need ok from Seth/Jeremy/Tim

2014-04-22 Thread James Cammarata
The core ansible code is and will remain GPL3+, however the code in the modules and the parts that interface with them (the module_utils/*.py files) are licensed using the BSD license so that all modules written by the authors is owned by them. If you have any further questions regarding this,

Re: [ansible-project] Delete old databases

2014-04-22 Thread James Cammarata
You might want to look at http://docs.ansible.com/playbooks_loops.html#looping-over-hashes, where you could create a dictionary structure like: my_dbs: db1: state: present db2: state: absent And your task could look like this: - name: add/remove databases whatever_db_module:

Re: [ansible-project] Error validating launchpad.net SSL certificate?

2014-04-28 Thread James Cammarata
What version of Ansible are you running? There were some changes in 1.5.3+ to address certificate validation issues on Ubuntu systems. Also please make sure that you have the correct CA package installed (ca-certificates) and that the /etc/ssl/certs/ directory is present and contains certificates.

Re: [ansible-project] PowmInsecureWarning: Not using mpz_powm_sec

2014-04-29 Thread James Cammarata
Jeremy, I've merged in a patch to address this ( https://github.com/ansible/ansible/commit/4cad488fd12cb9d765cbcf5b2781072dc712), which essentially catches the warning and prints a nicely formatted warning to stderr. This error is also only printed once, so the verbose output from the original

Re: [ansible-project] Error validating launchpad.net SSL certificate?

2014-04-29 Thread James Cammarata
the certificates. In fact, I showed that if I take the temporary file with CA certificates that Ansible creates and use it with gnutls-cli then the launchpad.net certificate validates. Regards, Joost Op 29 apr. 2014 02:58 schreef James Cammarata jcammar...@ansible.com: What version of Ansible

Re: [ansible-project] PowmInsecureWarning: Not using mpz_powm_sec

2014-04-30 Thread James Cammarata
: The current code does in fact say how to resolve the warning. On Tue, Apr 29, 2014 at 3:42 PM, Jeremy Schneider jeremy.s...@ardentperf.com wrote: On Tue, Apr 29, 2014 at 2:32 PM, James Cammarata jcamm...@ansible.com wrote: Jeremy, I've merged in a patch to address this ( https://github.com

Re: [ansible-project] accelerated mode error python-keyczar must be installed

2014-05-01 Thread James Cammarata
If you open a python shell and type the following, what do you get back? from Crypto.pct_warnings import PowmInsecureWarning import keyczar.errors as key_errors from keyczar.keys import AesKey I did notice yesterday that - depending on how pycrypto and keyczar were installed, the first line

Re: [ansible-project] What is the difference between `notify` and just a task at the end of a playbook?

2014-05-01 Thread James Cammarata
Handlers are typically more useful in that multiple tasks can trigger them via the notify: action, so they will only run if the task has changed. Otherwise, the task will always run and you may bounce services unnecessarily. On Thu, May 1, 2014 at 4:00 AM, Andrew Pashkin

Re: [ansible-project] cannot run an ansible playbook with vsphere_guest support

2014-05-01 Thread James Cammarata
If you do the following, does it work as expected? - name: test vsphere vsphere_guest: ... If not, it would seem that you've got some issue with your module path. On Thu, May 1, 2014 at 12:06 PM, John Shen johnshe...@gmail.com wrote: $ ansible-playbook vmtest.yml ERROR: vsphere_guest

Re: [ansible-project] why isn't stdout returned on this most basic of commands?

2014-05-01 Thread James Cammarata
What version of ansible are you running? There were some issues in parsing the stdout of some commands when unicode characters were contained in it, however that has been fixed in devel for a couple of weeks. On Thu, May 1, 2014 at 3:37 PM, Andy Ingham andy.ing...@alumni.unc.eduwrote: This one

Re: [ansible-project] Best practice to set up command that will run only at first session

2014-05-02 Thread James Cammarata
The command/shell modules already do this with the creates/removes options. See the documentation here: http://docs.ansible.com/command_module.html On Fri, May 2, 2014 at 1:24 AM, Andrew Pashkin andrew.pash...@gmx.co.ukwrote: What is the good way to make command run only one time and never

Re: [ansible-project] Dynamically change the order of hosts ansible runs on

2014-05-02 Thread James Cammarata
To handle this, I would create a custom fact ( http://docs.ansible.com/playbooks_variables.html#local-facts-facts-d) that returned whether the current host is in the master state. Then you could write two tasks as follows: - name: shut down non-masters # - whatever method you're using to shut

Re: [ansible-project] Weird bug with locale

2014-05-02 Thread James Cammarata
Just yesterday we merged in a slight change in the way that we're setting the localization environment and other environment variables. What version are you running to produce the above output? On Fri, May 2, 2014 at 1:42 PM, Andrew Pashkin andrew.pash...@gmx.co.ukwrote: I'm trying to set up

Re: [ansible-project] Weird bug with locale

2014-05-02 Thread James Cammarata
the [defaults] section. That value will then be used instead of C. On Fri, May 2, 2014 at 2:11 PM, Andrew Pashkin andrew.pash...@gmx.co.ukwrote: On 02.05.2014 22:55, James Cammarata wrote: Just yesterday we merged in a slight change in the way that we're setting the localization environment

[ansible-project] Ansible 1.6.0 has been released

2014-05-05 Thread James Cammarata
And is available on PyPi now. For full details of the release, including the major changes we've made (30+ new modules!), please see the announcement on our blog: http://www.ansible.com/blog/ansible-1.6-adds-30-new-modules Enjoy! -- James -- You received this message because you are

Re: [ansible-project] access inventory file name

2014-05-05 Thread James Cammarata
The name of the current inventory file in use is stored in the inventory_file variable name, so you could check that. Beyond that, there are two other options: 1. Use --extra-vars to specify the target environment, for example: --extra-vars=inventory=qa 2. The group_vars location is based on the

Re: [ansible-project] Weird problem with network reuse of TCP ports from apps started from ansible

2014-05-06 Thread James Cammarata
Go ahead and open a github issue for this, and we'll see if we can reproduce it. Thanks! On Tue, May 6, 2014 at 12:43 PM, Stephen John Smoogen smo...@gmail.comwrote: So we have been running into an issue in our ansible rollout that hasn't occurred before sometime in mid April. About that

Re: [ansible-project] how to have general playlist call specific playlist and/or roles?

2014-05-07 Thread James Cammarata
This will not work, since the hosts and roles must be known at the time the playbook is read, so you can't do variable substitutions on those. An alternative to this method is to have just the one role that includes different task files based on the values of the system facts. See

Re: [ansible-project] Help with regex, replace, and quotes

2014-05-08 Thread James Cammarata
This worked for me: re.compile(r(?:'dbhost')\s*(?:=)\s*['](.*)['],).match(r'dbhost' = 'laskdjflkjsdlfkj',).groups()[0] 'laskdjflkjsdlfkj' It would also match a string with unbalanced quotes like 'foo but it's a much longer regex to enforce avoid that (at least in my experience, others may have

Re: [ansible-project] vsphere_guest feature

2014-05-09 Thread James Cammarata
I mentioned that to the modules author, and I believe he's working on it, so keep an eye out for it. On Fri, May 9, 2014 at 7:15 AM, antony.periga...@polyconseil.fr wrote: Hello, I'm happy to read the last changelog with vpshere_guest module but it missing one feature in this module : We

Re: [ansible-project] Script module failing with ansible 1.6

2014-05-09 Thread James Cammarata
Thanks, could you please open an issue on github for this issue so we can keep track of it? On Fri, May 9, 2014 at 12:47 PM, Ryan Schulze r...@dopefish.de wrote: Hi, since the update to ansible 1.6 the script module has been failing with LC_CTYPE=en_US.UTF-8: Command not found. (which makes

Re: [ansible-project] UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 84: ordinal not in range(128)

2014-05-12 Thread James Cammarata
Can you try setting module_lang = en_US.UTF-8 in your ansible.cfg to see if that corrects the issue? On Mon, May 12, 2014 at 2:30 PM, Joel Sdc sdc.j...@gmail.com wrote: Hi, I'm having a little problem. When I run a simple playbook, on some servers I get a UnicodeEncodeError and the playbook

Re: [ansible-project] Need to avoid using a hosts or inventory file using Ansible

2014-05-13 Thread James Cammarata
I would recommend using a dynamic inventory script that would provide the information, assuming it can be found via some local command or API? On Mon, May 12, 2014 at 6:15 PM, Noah Parker neat...@gmail.com wrote: Hello, The way I am implementing Ansible will mean that I will not know the IP

Re: [ansible-project] Change a global var in a task

2014-05-15 Thread James Cammarata
Using set_fact should still achieve the same effect, you're using that variable over multiple plays with differing sets of hosts? On Thu, May 15, 2014 at 7:37 AM, 'Petros Moisiadis' via Ansible Project ansible-project@googlegroups.com wrote: Is there any way to change a global variable (e.g.

Re: [ansible-project] how to exclude . in facts key

2014-05-15 Thread James Cammarata
Does escaping the . in the interface name work? If not, you can always revert back to regular python dictionary syntax, for example (from my system): - hosts: localhost tasks: - debug: msg='{{hostvars[inventory_hostname][ansible_virbr0].ipv4.address}}' Outputs: TASK: [debug

Re: [ansible-project] Change a global var in a task

2014-05-15 Thread James Cammarata
It might be useful, if you're interested in writing/contributing something like that we'd definitely consider it. Thanks! On Thu, May 15, 2014 at 9:27 AM, 'Petros Moisiadis' via Ansible Project ansible-project@googlegroups.com wrote: On 05/15/14 16:17, James Cammarata wrote: Using

Re: [ansible-project] Error after sucessful copy with sudo

2014-05-15 Thread James Cammarata
What version of Ansible are you running? On Thu, May 15, 2014 at 9:31 AM, Ammar Hassan contactam...@gmail.comwrote: Hi all, I am new to ansible and stuck with a tricky situation. In my ansible playbooks/tasks I am copying over a bunch of files to a remote machine with SUDO. I get the

Re: [ansible-project] User Creation: Better way to do this?

2014-05-15 Thread James Cammarata
I believe you could just register the results of the user add step and then iterate over that: - name: Create User user: ... register: created_users with_items: add_users tags: - users - name: Force new user to change password at next login command: chage -d 0 {{ item }} when:

Re: [ansible-project] ansible user module

2014-05-15 Thread James Cammarata
You cannot specify multiple user entries under the one name. You need to modify it to do the following: - name: add user1 user: ... - name: add user2 user: ... etc. On Thu, May 15, 2014 at 10:18 AM, br...@antsmarching.net wrote: I am using ansible 1.5.5. The server/clients are centos

Re: [ansible-project] db host wildcard

2014-05-16 Thread James Cammarata
You can use the mysql_user module for this, see the examples in http://docs.ansible.com/mysql_user_module.html Specifically, you'll want something like this example: # Creates database user 'bob' and password '12345' with all database privileges and 'WITH GRANT OPTION' - mysql_user: name=bob

Re: [ansible-project] --step option for ansible-playbook

2014-05-16 Thread James Cammarata
The c for --step means to continue, and will stop stepping. Feel free to open a github issue for us to update the docs regarding this option. Thanks! On Fri, May 16, 2014 at 11:37 AM, Petr Sukharev st.ing...@gmail.com wrote: Hello! Simple question - does letter c in --step mode means cancel

Re: [ansible-project] SSH connection problem

2014-05-16 Thread James Cammarata
Yes I did mean transport = ssh, sorry for the confusion there. On Fri, May 16, 2014 at 9:43 AM, Adam Morris zwack...@gmail.com wrote: On Friday, May 16, 2014 6:24:55 AM UTC-7, James Cammarata wrote: You can make this permanent by changing the transport = setting in your ansible.cfg

Re: [ansible-project] db host wildcard

2014-05-16 Thread James Cammarata
The host parameter for that module controls the host portion of the user login information. So you should set host=* to allow connections from any remote host. On Fri, May 16, 2014 at 3:27 PM, Wynne Pirini wynnepir...@gmail.com wrote: Here's the command I'm sending: - name: Create/assign

Re: [ansible-project] Re: Using Spacewalk or Red Hat Satellite - new inventory script

2014-05-19 Thread James Cammarata
Yes, in the source tar (or from github) there is plugins/inventory/spacewalk.py. On Mon, May 19, 2014 at 6:02 AM, Tracy Phillips tracp...@weberize.comwrote: On Wednesday, May 22, 2013 9:21:43 AM UTC-4, Michael DeHaan wrote: I just merged a pull request for an Ansible inventory source.

Re: [ansible-project] Bail out of a play based on a condition

2014-05-19 Thread James Cammarata
. I don't want this condition to trigger a failure. It's more like next or continue in most programming languages. I know ansible is not a full language, but it already has lots of flow control capabilities I was just wondering if it had this one too. On Mon, May 19, 2014 at 3:47 PM, James

Re: [ansible-project] callbacks example, step by step

2014-05-19 Thread James Cammarata
There is no way to specify the callback via a playbook. To use them, you must use the Ansible API directly. Callbacks are used in the ansible and ansible-playbook system scripts, if you want to see how they're used there. Any further questions regarding using the API are best sent to the

Re: [ansible-project] Choosing and adhoc host without inventory file

2014-05-19 Thread James Cammarata
For simple testing, you can use the -i host, syntax (don't forget the comma at the end, it is required). This should only be used for testing purposes, we always recommend you use some sort of inventory file or dynamic inventory script for regular use. On Mon, May 19, 2014 at 9:28 PM, Roger Qiu

Re: [ansible-project] How to specify author and version of a dependency of a role?

2014-05-21 Thread James Cammarata
You control which roles are installed on your system, so that is really a matter of personal preference. If you use the ansible-galaxy tool to install roles from galaxy.ansible.com, you can specify both the version of the role (if the author is using versions) as well as the directory to save the

Re: [ansible-project] When are vault values resolved during playbook?

2014-05-21 Thread James Cammarata
Where in the playbook are you specifying the vault file? Is it in vars_files or somewhere else? On Wed, May 21, 2014 at 8:54 AM, Derptacos devon.r...@gmail.com wrote: I have a playbook that requires a value from a vault - but I am consistently running into issues regarding the existence of

Re: [ansible-project] ControlMaster settings not taking affect

2014-05-21 Thread James Cammarata
You should not need to specify those extra ssh_args if you're using the ssh transport and your system supports ControlPersist. Can you gist/pastebin the output of a test run using -v to see any additional SSH debugging information available? On Wed, May 21, 2014 at 12:20 AM, Greg Hurrell

Re: [ansible-project] When are vault values resolved during playbook?

2014-05-21 Thread James Cammarata
Inventory variables are resolved after roles are read in, so yes moving the vault file to the vars_files section is the correct placement. On Wed, May 21, 2014 at 9:16 AM, Derptacos devon.r...@gmail.com wrote: The file is in group_vars On Wednesday, 21 May 2014 10:10:03 UTC-4, James

Re: [ansible-project] Re: Transfering large files from one remote machine to another

2014-05-21 Thread James Cammarata
Have you tried using the synchronize module for this? Since it's a wrapper around rsync, you should be able to use it to transfer files from one remote host to another. On Wed, May 21, 2014 at 1:29 PM, Michael Peters michael00pet...@gmail.comwrote: I also tried using a copy with a delegate_to

Re: [ansible-project] Cannot change to '/root/..' with sudo_user

2014-05-21 Thread James Cammarata
What version of ansible are you running? Version 1.6 should include a fix for this. On Wed, May 21, 2014 at 2:48 PM, Ryan Stewart zzant...@gmail.com wrote: I'm running a playbook where remote_user is root, and on some tasks, I use sudo: yes with sudo_user: jenkins to do some per-user setup.

Re: [ansible-project] Azure support

2014-05-22 Thread James Cammarata
I have not heard anything regarding one, but we're always open to new contributions. It does appear the Microsoft has a python API library on PyPI: https://pypi.python.org/pypi/azure/0.8.0 which is Apache-licensed, so using that should be no problem. Let us know if you or anyone else is interested

Re: [ansible-project] Azure support

2014-05-22 Thread James Cammarata
Yes, the AWS/EC2 modules are pretty well used and break the functionality of different parts of their offering into manageable chunks. Definitely don't try to cram every feature Azure supports into a single module. The aws and rax modules also make a good use of the code-reuse functionality we

Re: [ansible-project] pip install fails on Cento5.10

2014-05-22 Thread James Cammarata
Hrm yes, that seems to be broken because of a dependency issue. You can try and install a slightly older version of the ecdsa library first, to see if that gets you around the issue? On Thu, May 22, 2014 at 8:16 AM, Mark Maas m...@maas-martin.nl wrote: Dear All, I'm unable to install ansible

Re: [ansible-project] variables in --check mode

2014-05-22 Thread James Cammarata
I believe you'd want to check whether the registered variable (or member of the variable) is defined, as follows (assuming you registered a variable named result): when: 'foo in result and result.foo != something' This way, you can prevent undefined errors and the task would just be skipped.

Re: [ansible-project] Ansible Doesn't Use SSH Config File specified by ssh_args?

2014-05-23 Thread James Cammarata
I think what Michael meant was to specify the full path to the sshconfig file, ie. -F /path/to/mysshconfig instead of a relative path. On Fri, May 23, 2014 at 11:30 AM, Slim Slam slimands...@gmail.com wrote: FWIW, I got this idea from *you* :-) - reference:

Re: [ansible-project] Azure support

2014-05-24 Thread James Cammarata
at 11:47 AM, James Cammarata jcamm...@ansible.comwrote: Yes, the AWS/EC2 modules are pretty well used and break the functionality of different parts of their offering into manageable chunks. Definitely don't try to cram every feature Azure supports into a single module. The aws and rax modules

Re: [ansible-project] Azure support

2014-05-24 Thread James Cammarata
you mean just somewhere else but not in this class? Thx On May 24, 2014 1:23 PM, James Cammarata jcammar...@ansible.com wrote: You might want to remove the common_argument_spec() function from your class, as it doesn't really need to be there but beyond that it looks like a good starting

Re: [ansible-project] User updated every single run

2014-05-25 Thread James Cammarata
Another user had opened an issue for a very similar error, however it turned out to be something in their environment. My suggestion to them was to compare the output of getent passwd username before and after a run to see what it might be changing each time. Beyond that, it might be something

Re: [ansible-project] Using a conditional (when) in conjunction with a loop

2014-05-27 Thread James Cammarata
I'm unclear why you can't do this? Is it failing with an error or some other problem? On Tue, May 27, 2014 at 4:43 PM, Alex King a...@king.net.nz wrote: Currently I add system users with the following play: # # Create system users # - name: sys admin users tags: sys_admin_users

Re: [ansible-project] Trying to skip a task when a dict variable is not defined.

2014-05-28 Thread James Cammarata
You migh want to use set_fact on the hosts, when the dict is not defined, to give it some default value instead. As you've noticed, the when clause is applied to each item in the loop, so it's evaluated after the with_dict is parsed. On Tue, May 27, 2014 at 2:25 PM, Heath Henjum

Re: [ansible-project] with_items x count

2014-05-29 Thread James Cammarata
You can simplify that by just using with_items: vars: droplets: - name: consul count: 5 region: nyc2 region_id: 4 - name: influxdb count: 3 region: nyc2 region_id: 4 - name: elasticsearch count: 4 region: nyc2

  1   2   3   4   5   >