Re: [ansible-project] playbook hangs forever

2019-01-10 Thread James Tanner
https://tannerjc.net/wiki/index.php?title=Ansible_Hangs_Filament On Thu, Jan 10, 2019 at 10:13 AM wrote: > > i have a playbook which hangs at the follwing output. no clue where to > look at. i already checked for ssh problems but everythin seems ok. ssh > outside ansible also is working. > > any

Re: [ansible-project] custom module, how to locate ansible magic vars

2018-09-29 Thread James Tanner
There's another class of plugins that you can think of as "sitting on top of modules": https://docs.ansible.com/ansible/devel/plugins/action.html Action plugins can do a lot of complicated things such as accessing vars and internal play contexts. On Sat, Sep 29, 2018 at 11:56 AM texas living wr

Re: [ansible-project] Ansible 2.4.2.0 EPEL fails on CentOS 7.4.1708. Known problem?

2018-01-08 Thread James Tanner
Please provide an example - output. On Mon, Jan 8, 2018 at 10:19 AM, Oscar Hodgson wrote: > I have a work-around available, just checking. The CentOS 6.9 EPEL > ansible 2.4.2.0 works. > > Setting up a group of 20+ CentOS 7 boxes and using ansible on one “master” > to manage the group. > > S

Re: [ansible-project] Re: Ansible and tower on different systems

2017-11-22 Thread James Tanner
Tower can be clustered in a way that jobs are executed on different nodes, but I think those nodes also have tower installed and running in a "worker" mode. I suspect you meant having tower run ansible on an arbitrary non-tower machine, so the short answer would be "no". If this is a feature you w

Re: [ansible-project] Re: Introduction - Prakash Mishra

2017-10-31 Thread James Tanner
New developers should start with this docs page http://docs.ansible.com/ansible/latest/community.html#for-current-and-prospective-developers We have an ansible-devel mailing list and irc channel which is where most dev related chatter happens. Feel free to stop by. On Tue, Oct 31, 2017 at 9:03 AM

Re: [ansible-project] Ansible Version 3.2.1 Upgrade issue

2017-10-31 Thread James Tanner
Please contact support for Tower related issues. http://docs.ansible.com/ansible-tower/latest/html/administration/license-support.html#support On Tue, Oct 31, 2017 at 4:13 AM, Nuwan Vithanage wrote: > I got below error when I try to update V 3.1.5 to 3.2.1 > > > TASK [awx_install : Migrate the T

Re: [ansible-project] Re: Task execution only for special items within a loop

2017-09-07 Thread James Tanner
Calling set_fact with an item loop is not going to slice the original list. Your best best is to make a custom filter plugin to handle this. An example might look like: - set_fact: newlist: "{{ bundle_artifacts|artifact_reduce(product, env) }}" http://docs.ansible.com/ansible/latest/dev_gu

Re: [ansible-project] Getting a Column value from row

2017-07-26 Thread James Tanner
Try using the shell module instead of command. On Wed, Jul 26, 2017 at 1:50 PM, Vijay Misra wrote: > Thanks Kai for your quick response ! > Here is my output , problem is it does not extract the VMID but outputs > the whole string. I intend to just get the VMID. > > TASK [ESX_VM_SnapRestore : de

[ansible-project] Re: vmware_guest_snapshot module is not able to find VM

2017-07-25 Thread James Tanner
Please test latest devel code on github.com/ansible/ansible and file a bug if it doesn't work. On Monday, July 24, 2017 at 6:40:53 PM UTC-4, Vijay Misra wrote: > > I have used vmware_guest_snapshot module but it's not able to find the > VM. even though if i include "folder:" with full path of t

[ansible-project] Re: Ansible in the docker container?

2016-11-08 Thread James Tanner
The docker connection plugin is probably what you are looking for. It allows ansible to manipulate the container via the docker exec api. On Monday, November 7, 2016 at 8:18:34 PM UTC-5, Steven Truong wrote: > > Hi all, > > Am I being too picky here or just being naive in the ways I approach my

[ansible-project] Re: Hi, why can't I post?

2016-11-04 Thread James Tanner
First posts are moderated. On Friday, November 4, 2016 at 8:58:48 AM UTC-4, LXC-dev - Koha-Lappi wrote: > > I joined this group some time ago, but can not post, why? > > -jukka > > > PS. Just testing if this post gets thru ;) > -- You received this message because you are subscribed to the Goog

[ansible-project] Re: Create multiple VMware guests with a Playbook?

2016-06-21 Thread James Tanner
Your with_items line is indented too far. It should align with the first letter of the word "name". On Tuesday, June 21, 2016 at 8:57:47 AM UTC-4, Chun-Hung Huang wrote: > > Hi Mark Matthews and ALL > > I meet the same problem with create Create multiple VMware guests with a > Playbook. > Could

Re: [ansible-project] Trouble syncing bunch of files using synchronize / sudo rsync

2014-04-15 Thread James Tanner
o turn it off. On Apr 15, 2014, at 6:21 PM, Sibin Arsenijevic wrote: > @James Tanner of course! > > This is site.yml which calls role streamer which in turn includes rsync.yml. > I have made comments in pastebin which should put you right on the track. > > http://pastebin.com/7NA

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

2014-04-15 Thread James Tanner
Also, you don't need to quote the entire argset: copy: src=/tmp/"{{ freeipaserver_ip }}"/var/lib/ipa/replica-info-"{{ ansible_hostname }}".gpg dest=/var/lib/ipa/replica- info-"{{ ansible_hostname }}".gpg owner=foo group=foo mode=0644 On Tuesday, April 15, 2014 5:37:10 PM UTC-4, Andrew Holway wr

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

2014-04-15 Thread James Tanner
Also the hypen should be in front of name: and copy: should be aligned with name: - name: blah copy: On Tuesday, April 15, 2014 5:37:10 PM UTC-4, Andrew Holway wrote: > > Hi, > > I cant get past this error. I've tried various combinations of quotes but > to no avail. > > Any ideas? > > ta, >

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

2014-04-15 Thread James Tanner
If foo is a list, then do this ... with_items: foo On Tuesday, April 15, 2014 5:37:10 PM UTC-4, Andrew Holway wrote: > > Hi, > > I cant get past this error. I've tried various combinations of quotes but > to no avail. > > Any ideas? > > ta, > > Andrew > > > [root@ansible ansible-catn-freeipa]#

Re: [ansible-project] Trouble syncing bunch of files using synchronize / sudo rsync

2014-04-15 Thread James Tanner
Formatting is a bit wonky in the email. Could you put the playbook/tasks on gist or paste bin? On Apr 15, 2014, at 8:53 AM, Sibin Arsenijevic wrote: > First of all i want to tell you how amazed i am with Ansible! The more i > learn it the more amazed i am, it is a great peace of software. > B

Re: [ansible-project] ERROR: A vault password must be specified to decrypt data

2014-04-15 Thread James Tanner
remove these flags then it > works as expected. I was actually trying with --check option before and it > failed. So, I guess no need for ticket. > > BR, > Edgars > > otrdiena, 2014. gada 15. aprīlis 15:26:38 UTC+2, James Tanner rakstīja: > I just did a quick visual au

Re: [ansible-project] ERROR: A vault password must be specified to decrypt data

2014-04-15 Thread James Tanner
I just did a quick visual audit of the code where vars_files are loaded, but could see nothing that would break encrypted files. Please file a bug with all the relevant data and I will try to troubleshoot/fix. On Apr 15, 2014, at 9:01 AM, Edgars wrote: > No, no, it is not in clear text. passwo

Re: [ansible-project] YAML syntax error (beginner)

2014-04-11 Thread James Tanner
On 04/11/2014 03:20 AM, WS wrote: Hello I just started to use ansible so please bear with me. I managed to run a few basic playbooks but I am stuck with the following one (basic as well): | --- -hosts:all tasks: -name:copy bashrc to .bashrc action:copy src=files/bashrc dest=~root/.bash

Re: [ansible-project] Ansible 1.5.3 not running ruby scripts

2014-04-10 Thread James Tanner
On 04/09/2014 05:34 AM, Ramesh Raithatha wrote: Hello, I updated to ansible 1.5.3 and now i am not able to run my ruby scripts using "local_action" and "command" module. It was running perfectly fine with ansible 1.4.3. TASK: [Checking elb stat]

Re: [ansible-project] ansible-pull and group_vars

2014-04-10 Thread James Tanner
On 04/10/2014 09:38 AM, Fred Badel wrote: Hello, I am trying to set ansible-pull to provision ec2 instances ... with not much success so far ... I tried using the ec2.py dynamic inventory: ansible-pull -C feature/ci -d /home/ec2-user/ansible -i ansible/ec2.py tag_Name_qatest23 -U ssh://git

Re: [ansible-project] lib/ansible/module_utils/known_hosts.py and sha1 import on 1.5.3, 1.5.4...

2014-04-10 Thread James Tanner
On 04/10/2014 09:24 AM, seanosh wrote: Not sure if this is a bug or not so I didn't want to file in GitHub just yet. A rough timeline: * Support added between 1.5.2 and 1.5.3 for checking hashed entries in SSH known_hosts files * 1.5.3 released * https://github.com/ansible/ansible/pull/6639 *

Re: [ansible-project] Ensuring a command only runs once

2014-04-10 Thread James Tanner
On 04/09/2014 12:23 PM, Stefan Eriksson wrote: hi I have this exact issue but dont understand the anwer "Creates is the way to go here!" could anyone explain in little more detail? thanks. Den tisdagen den 6:e augusti 2013 kl. 03:09:21 UTC+2 skrev Jonathan Rowlands: Cool, thanks! On

Re: [ansible-project] Aborting playbook execution during rolling updates?

2014-03-31 Thread James Tanner
I'd send you the link to the docsite, but this will have to do for now: https://github.com/ansible/ansible/blob/devel/docsite/rst/playbooks_delegation.rst#maximum-failure-percentage On Mon, Mar 31, 2014 at 3:07 PM, Michael Mahemoff wrote: > I have parallel hosts configured with "serial" to ensu

Re: [ansible-project] Can I remove past ec2 idempotency/request ids??

2014-03-26 Thread James Tanner
I would first try to make the instance_tags a dictionary instead of a "dictionary-like" string: instance_tags: foo: bar baz: bang who: doo And use the same pattern for the count tag. On 03/26/2014 09:53 AM, Mark Casey wrote: Okay, so in the interest of moving to exact_count I swit

Re: [ansible-project] hostkey enhancements to the git module

2014-03-25 Thread James Tanner
key: getaddrinfo >>: Name > or service not known > > > FATAL: all hosts have already failed -- aborting > > PLAY RECAP > >to retry, use: --limit @/root/webservers.retry > > app01

Re: [ansible-project] Managing groups of dynamic hosts

2014-03-25 Thread James Tanner
Not sure I'm understanding the original question, but my advice for the cloud scenario is to use complex tagging. The ec2 module in particular can create instances by an exact_count which is based on a dictionary of tags. # instances with tags foo & bar & baz=bang count_tag: -

Re: [ansible-project] hostkey enhancements to the git module

2014-03-25 Thread James Tanner
pp01] => {"failed": true, "item": ""} > msg: intro.repositoryhosting.com has an unknown hostkey. Set accept_hostkey > to True or manually add the hostkey prior to running the git module > > FATAL: all hosts have already failed -- aborting > > > > On

Re: [ansible-project] SyntaxError with synchronize module

2014-03-25 Thread James Tanner
Does the remote host have ansible_python_interpreter set in your inventory? On Mar 25, 2014, at 10:42 AM, Mehul Ved wrote: > On Tue, Mar 25, 2014 at 8:00 PM, Petros Moisiadis wrote: >> The syntax error you get could be caused by a python 3 interpreter being >> used at the target machine instead

Re: [ansible-project] ansible.runner.HostVars object has no element

2014-03-21 Thread James Tanner
Before the mysql_user task, add a debug task to check the hostvars data structure ... - debug: var=hostvars That should tell you what is available during the play execution. On Mar 21, 2014, at 10:53 AM, David Neudorfer wrote: > Ansible is telling me that the HostVars object has no element,

Re: [ansible-project] 1.4.4 to 1.6 break on localhost playbook

2014-03-21 Thread James Tanner
facts.update(Network(module). populate()) This was an error that made it in to the 1.5.1 and 1.5.2 releases but should no longer exist in 1.5.3 or devel. Please indicate what version of ansible you are using and how you install it. On Fri, Mar 21, 2014 at 11:47 AM, Matt Martz wrote: > So, 1.6

Re: [ansible-project] group_vars appear to be skipped for implicit localhost when using inventory plugin

2014-03-18 Thread James Tanner
Can we see the second playbook? On 03/18/2014 12:46 PM, Michael DeHaan wrote: The implicit localhost feature is new, and it's not technically part of any group, so I'm not too surprised it doesn't read group variables for the host. If you'd like to file a github ticket we can look into making

Re: [ansible-project] Switching User Confusion

2014-03-11 Thread James Tanner
On 03/11/2014 10:59 PM, Erik Anderson wrote: The user you're running ansible as needs to have privileges to run commands as your target user. In your use case, this is likely taken care of if you're using one of the standard vagrant boxes. If you need to override the default sudo user for a co

Re: [ansible-project] Re: Ansible 1.5.1 released: security updates

2014-03-11 Thread James Tanner
If the pipe filter is not working in a way that it previously worked, please file a bug and we will look into it. On Tue, Mar 11, 2014 at 4:25 PM, wrote: > Hello, > > Are there any plans to give users the option of re-enabling execution > via shell (for the pipe lookup module in particular) o

Re: [ansible-project] apt-get install play suddenly fails

2014-03-11 Thread James Tanner
This should be fixed by 1.5.2 On Tue, Mar 11, 2014 at 1:03 AM, Demetri Mouratis wrote: > I've got this play in my playbook to install mysql-server: > > #MySQL server setup > > - name: Install MySQL Server > > apt: pkg={{ item }} state=present update_cache=yes > > with_items: > >

Re: [ansible-project] 1.5 synchronize module does not copy from Ansible controller to inventory target

2014-03-07 Thread James Tanner
On 03/07/2014 05:12 PM, Chris Shenton wrote: I haven't yet tried the Ansible provisioner in Vagrant (too ignorant), was just trying to get a VirtualBox up and running instead of using AWS instances I had been running against. So I hacked out the least Puppet i needed to get an account that Ansi

Re: [ansible-project] 1.5 synchronize module does not copy from Ansible controller to inventory target

2014-03-07 Thread James Tanner
On 03/07/2014 01:20 PM, Chris Shenton wrote: Here's the play: - name: Drupal | Add Libraries & Modules (synchronize) synchronize: src=../roles/drupal-install/files/{{ item }} dest={{ drupal_path }}/sites/all/ sudo: no with_items: - libraries - modules tags: s

Re: [ansible-project] 1.5 synchronize module does not copy from Ansible controller to inventory target

2014-03-07 Thread James Tanner
On 03/07/2014 11:27 AM, Chris Shenton wrote: I'm trying to copy a bunch of files, recurisvely, from my Ansible control machine to the inventory target. The 'synchronize' module (in 1.5) sounds like it does just what I need: # Synchronization of src on the control machine to dest on the remote

Re: [ansible-project] Re: problem with running TOWER (AWX) following the video tutorial

2014-03-06 Thread James Tanner
On 03/06/2014 09:36 PM, paul.zielin...@ecofactor.com wrote: I'm seeing the same problem... I'd be interested in the solution if you found one. On Wednesday, February 5, 2014 1:33:33 PM UTC-8, Wojciech Hajduczenia wrote: Good afternoon. I am a beginner user and been working with simpl

Re: [ansible-project] How do you set the path variable?

2014-03-06 Thread James Tanner
On 03/06/2014 04:28 PM, hindenburg wrote: I'm trying to set the path variable in ansible - name: Export env variables shell: export PATH="PATH=/b/local/bin:/b/bin:$PATH" - shell: echo $PATH register: foo - debug: msg="the echo was {{ foo.stdout }}" But when I echo the p

Re: [ansible-project] Re: Can't get git module to work -- permission denied

2014-03-06 Thread James Tanner
On 03/06/2014 05:46 PM, Mike Titus wrote: On Thursday, March 6, 2014 2:33:37 PM UTC-8, James Tanner wrote: We can't be certain what user is executing the git command without seeing the - output from your play. The git module in 1.5 has a key_file parameter to pass in the

Re: [ansible-project] Re: Can't get git module to work -- permission denied

2014-03-06 Thread James Tanner
On 03/06/2014 05:30 PM, Mike Titus wrote: Ansible version 1.5 On Thursday, March 6, 2014 2:26:19 PM UTC-8, Mike Titus wrote: I've created a GitHub user on the target server with a private key in ~/.ssh/id_rsa (and added the public key to GitHub). If I "sudo su deploy" I can then cl

Re: [ansible-project] issue for enabling/disabling ping with sysctl

2014-03-05 Thread James Tanner
Firewalls and various other factors aside, please verify 2 things: 1) the line exists in sysctl.conf after running the module 2) the property is set when you run "sysctl net.ipv4.icmp_echo_ignore_all" If those two items are true, the module is working as expected. On Wed, Mar 5, 2014 at 10:36 P

Re: [ansible-project] Ansible 1.5 is released!

2014-03-03 Thread James Tanner
On 03/03/2014 10:37 AM, Brian Coca wrote: I went through this logic when attempting to add caching, the None state gathered facts only if the cache was empty (implied true), if the play had an explicit gather_facts: True it would 'refresh the cache'. This was a nice optimization, removing it i

Re: [ansible-project] Concerns about the vault implementation

2014-03-03 Thread James Tanner
On 03/02/2014 08:49 PM, David Anderson wrote: Greetings, I've been looking at the crypto that underlies ansible-vault, and I'm worried. Specifically, it seems to me that the vault as implemented is not safe for credential storage. If you haven't read the implementation, this is essentially w

Re: [ansible-project] Provisioning a Vagrant box: is Ansible installed on the guest or the host machine?

2014-03-03 Thread James Tanner
On 03/03/2014 07:05 AM, Julien Martin wrote: Hello, I have a basic interrogation about Vagrant and Ansible. Is Ansible *installed on the guest machine or on the host machine?* In other words, is there a requirement for Ansible to be installed on the host machine ? (I am keen to avoid install

Re: [ansible-project] Ansible 1.5 is released!

2014-03-03 Thread James Tanner
On 03/01/2014 09:16 PM, Dustin C. Hatch wrote: On 02/28/2014 02:56 PM, Michael DeHaan wrote: Or should we say, it escapes! And it's on PyPi now. http://blog.ansibleworks.com/2014/02/28/ansible-1-5-released/ Read the blog link above for details, and if you don't want to download via pip you ca

Re: [ansible-project] frustrated

2014-03-03 Thread James Tanner
On 02/28/2014 03:33 PM, David Marti wrote: Can anybody explain what this error means and why i can't run anything in ansible: mb-dmarti:tasks dmarti$ ansible -i sudo_hosts sudo_site.yml --list-hosts Traceback (most recent call last): File "/opt/ansible/ansible/bin/ansible", line 224, in

Re: [ansible-project] Permission denied using ansible-vault edit

2014-02-27 Thread James Tanner
Can you try setting EDITOR to vi, vim, or nano ? On Feb 27, 2014, at 2:02 PM, Kesten Broughton wrote: > I can encrypt and decrypt but i haven't been able to get edit to work. > > I'm running on a mac. In my bash_profile i have aliases to sublime > > > > -- .bash_profile --

Re: [ansible-project] skip a play in a playbook?

2014-02-25 Thread James Tanner
Roles can be run conditionally, so you might want to look at transitioning the "middle" play to a role if you do not want to mark every task with a when: statement. On Tue, Feb 25, 2014 at 7:18 AM, Jeremy Schulman wrote: > lets say i have a playbook with three plays. i would like to skip the >

Re: [ansible-project] Re: Ansible Vault is now merged into devel (1.5)

2014-02-19 Thread James Tanner
On 02/19/2014 02:01 PM, giulianob wrote: Will this work with lookup so if it generates a pass its stored in the vault automatically? (I asked this in the official post but didn't see my comment.) On Wednesday, February 19, 2014 1:20:34 PM UTC-5, James Tanner wrote: We just merged

[ansible-project] Ansible Vault is now merged into devel (1.5)

2014-02-19 Thread James Tanner
We just merged a new feature called "Ansible Vault" to devel (1.5). Please read through Michael Dehaan's blog post about the tools for basic usage: http://blog.ansibleworks.com/2014/02/19/ansible-vault/ Follow the typical bug reporting process for any issues you may find. Other notes: 1) The de

Re: [ansible-project] problem with running TOWER (AWX) following the video tutorial

2014-02-05 Thread James Tanner
On 02/05/2014 04:33 PM, Wojciech Hajduczenia wrote: Good afternoon. I am a beginner user and been working with simple version of ansible and worked perfectly. I have tried to install latest version of TOWER available on yum repo to make my life easier and i was following the tutorial video and

Re: [ansible-project] ERROR: AsciiDoc 'a2x' command is not installed but is required to build

2014-02-05 Thread James Tanner
On 02/05/2014 12:28 PM, Yuri Lukyanov wrote: The recent devel branch requires a2x to make rpm. sed "s/%VERSION%/1.5/" docs/man/man1/ansible-pull.1.asciidoc.in > docs/man/man1/ansible-pull.1.asciidoc ERROR: AsciiDoc 'a2x' command is not installed but is required to build docs/man/man1/ansible.1

Re: [ansible-project] ec2.instance_ids Invalid id

2014-02-05 Thread James Tanner
"local_action" and "delegate_to: localhost" are very similar and work pretty much the same way, except for one big difference. local_action also implies the connection method is local, where as "delegate_to: localhost" could use ssh/paramiko to connect to your local machine if those parameters

Re: [ansible-project] Dynamic inventory with Cobbler

2014-02-05 Thread James Tanner
On 02/04/2014 11:41 PM, Shuo Yang wrote: I am reading Ansible's dynamic inventory, http://docs.ansible.com/intro_dynamic_inventory.html#example-the-cobbler-external-inventory-script One question regarding the following code snippet. I would love to hear a high level explanation of what this co

Re: [ansible-project] Re: Synchronize module asks password

2014-02-05 Thread James Tanner
On 02/05/2014 12:51 AM, Giorgio Valoti wrote: Giorgio Valoti writes: Hi, I have just pulled the latest commits from the devel branch (commit: 2267503). Everythings work ok except for the synchronize module that now asks a password. Basically it uses the local user and not `ansible_ssh_user`.

Re: [ansible-project] Re: Traceback on group_by

2014-02-04 Thread James Tanner
Please file a bug for any tracebacks you find. We would definitely like to know if you can reproduce this on 1.4.4 or on the latest devel. On Tue, Feb 4, 2014 at 6:46 PM, Mark Casey wrote: > For what it's worth, I tried taking out the reference to group_names and > instead passed into the role

Re: [ansible-project] Some changes to the issue tracker (ansibot)

2014-02-04 Thread James Tanner
Actually, I disabled the bot on pull requests earlier this afternoon. We will be deciding on a different process to follow for those in the coming days. On Tue, Feb 4, 2014 at 6:19 PM, Dag Wieers wrote: > On Tue, 4 Feb 2014, Michael DeHaan wrote: > > So GitHub is quite useful to us, but we hav

[ansible-project] Some changes to the issue tracker (ansibot)

2014-02-04 Thread James Tanner
Ansible has grown rapidly over time and has benefitted greatly from all the collaborators and contributors on github. One slight disadvantage to Ansible's success is the volume of tickets created each day in the ticketing queue. We find ourselves spending a lot of time asking for the basic data we

Re: [ansible-project] rabbitmq_user user state=absent error

2014-01-30 Thread James Tanner
On 01/30/2014 02:58 PM, david.neudor...@warbyparker.com wrote: When I run the task: - rabbitmq_user: user=guest state=absent node=srv1 The error: failed: [v-cep01] => {"changed": true, "cmd": "/usr/sbin/rabbitmqctl delete_user guest ", "delta": "0:00:00.101132", "end": "2014-01-30 19:36:40.3

Re: [ansible-project] EC2 boto issue

2014-01-30 Thread James Tanner
On 01/29/2014 05:47 PM, estee...@gmail.com wrote: I'm having an issue using the ec2 module with ansible, version 1.4.4 on OSX. I keep getting msg: boto required for this module I am not using virutalenv, python was installed with brew and both ansible and boto were installed with pip. I have

Re: [ansible-project] Ansible hangs while executing a python script

2014-01-29 Thread James Tanner
On 01/28/2014 10:55 PM, Arulraj J wrote: Along with ansible tasks i was calling a python script named 'rbupgrade.py'. During this python script execution anisble hangs and couldn't move further. [root@cu028 ~]# ps -ef|grep py root 19725 19588 0 09:22 pts/000:00:00 grep py root 275

Re: [ansible-project] Cannot use add_host when using ec2.py?

2014-01-27 Thread James Tanner
I can’t see any reason in the code for this to not work. Could you show us the - output from ansible-playbook? Maybe something isn’t evaulated the way you expect. On Jan 27, 2014, at 2:05 PM, Mark Casey wrote: > Is it normal for add_host to not work when using ec2.py? I'm in a playbook >

Re: [ansible-project] git module now has sshopts and keyfile parameters

2014-01-24 Thread James Tanner
/issues/5750 On Jan 24, 2014, at 12:04 PM, Adam Heath wrote: > On 01/23/2014 09:37 PM, James Tanner wrote: >> On 01/23/2014 08:46 PM, a...@brainfood.com wrote: >>> The accept_hostkey fails if $HOME/.ssh doesn't already exist. >>> >>> -- >>> You r

Re: [ansible-project] git module now has sshopts and keyfile parameters

2014-01-23 Thread James Tanner
On 01/23/2014 08:46 PM, a...@brainfood.com wrote: The accept_hostkey fails if $HOME/.ssh doesn't already exist. -- 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] Re: ansible now supports su as an alternative to sudo

2014-01-23 Thread James Tanner
On 01/23/2014 08:38 PM, a...@brainfood.com wrote: This doesn't work with the git module. If I use sudo:true and sudo_user: {{item.owner}, then the git module does the correct thing. However, If I do su:true and su_user: {{item.owner}}, then the git module continues to run as root(I am connect

[ansible-project] git module now has sshopts and keyfile parameters

2014-01-23 Thread James Tanner
Thanks goes to Chris Blossom who did most of the research for this. https://github.com/ansible/ansible/commit/18050d50ecf94df95464a560d66d5e8d820ac52c - sshopts Creates a wrapper script and exports the path as GIT_SSH which git then automatically uses to override ssh arguments. An

[ansible-project] ansible now supports su as an alternative to sudo

2014-01-21 Thread James Tanner
Thanks to Paul for this one! Basic usage is similar to sudo … - hosts: el6.lab.net gather_facts: False su: yes su_user: root tasks: - shell: whoami or pass as command line parameters … ansible-playbook --su --su-user=root --ask-su-pass -i inventory site.yml Begin forwarded message

Re: [ansible-project] Re: msg: Failed to find required executable git

2014-01-21 Thread James Tanner
What is the path to git on that host? On Tue, Jan 21, 2014 at 8:15 AM, Iliya Strakovich wrote: > Forgot to mention: > My repo is on BitBucket > Link: git clone g...@bitbucket.org:xxx/xxx.git > > > On Tuesday, January 21, 2014 2:59:13 PM UTC+2, Iliya Strakovich wrote: >> >> Hi, >> >> My version i

Re: [ansible-project] bootstrapping nodes - when the setup module fails

2014-01-14 Thread James Tanner
Take a look at this ec2 example: http://docs.ansible.com/guide_aws.html#example-4 The wait_for module is capable of delaying a play until some resource (ssh for example) becomes available. On Tue, Jan 14, 2014 at 10:01 AM, Dave Cottlehuber wrote: > Hi, > > Is it possible to handle the initial s

Re: [ansible-project] Re: EC2 provisioning with Ansible

2014-01-13 Thread James Tanner
Also: http://docs.ansible.com/guide_aws.html#example-4 On Jan 13, 2014, at 2:06 PM, Joshua Conner wrote: > Is it possible to fully automatic launch an EC2 instance and run the > playbooks against this instance, with only one command? > > There's a good example of this in the Ansible documentat

Re: [ansible-project] Re: Question about best practice approach to indicate that something is already "setup"

2014-01-13 Thread James Tanner
For an "enterprise" scenario, the preferred approach (imo) is to automate packaging the jre as an rpm|deb or find a third party repo. https://github.com/ksyz/oracle-java-rpm On Mon, Jan 13, 2014 at 11:24 AM, Mark Casey wrote: > I would worry that someone will delete /etc/java-version one day a

Re: [ansible-project] dmg module for Mac OSX?

2014-01-11 Thread James Tanner
On 01/11/2014 02:55 PM, Steve Morin wrote: Does anyone know of a ansible DMG module for Max OSX? I would like one that can check if a application exists and only install the dmg if it doesn't exist. It should download it and do a full install if it doesn't. -Steve -- You received this messag

[ansible-project] hostkey enhancements to the git module

2014-01-11 Thread James Tanner
I created a new feature in the git module to help with hostkey management and prevent task hangs with unknown keys: https://github.com/ansible/ansible/commit/8665b0638a1d3a70f985126b0f007a26c81273cb https://github.com/ansible/ansible/commit/1e1c5aa9dd4f84175966e0f9e467fd7fc600 The module sh

Re: [ansible-project] Stack trace about incorrect padding

2014-01-08 Thread James Tanner
If you are getting a traceback and have instructions for us to reproduce, please file a bug or make a pull request. On Tue, Jan 7, 2014 at 2:49 PM, Jonathan wrote: > Resurrecting this thread in case other Ansible users encounter this again. > > I encountered this on one of my developer's system

Re: [ansible-project] Use flowdock plugin as handler, notify handler to send {{ message }}

2014-01-08 Thread James Tanner
What do you have so far? Maybe we can move you further along by seeing an example playbook or some pseudo code. On Wed, Jan 8, 2014 at 10:35 AM, Marko Lisica wrote: > So what I am trying to do is register variable after change has been made > and notify flowdock handler to send {{ message }}. As

Re: [ansible-project] Can group_by add hosts to an existing group?

2014-01-08 Thread James Tanner
err, ignore that last sentence, you were correct. I'm cross-eyed from looking at code all day On Wed, Jan 8, 2014 at 2:01 PM, James Tanner wrote: > The logic in question is here: > https://github.com/ansible/ansible/blob/devel/lib/ansible/runner/action_plugins/group_by.py#L90-L

Re: [ansible-project] Can group_by add hosts to an existing group?

2014-01-08 Thread James Tanner
The logic in question is here: https://github.com/ansible/ansible/blob/devel/lib/ansible/runner/action_plugins/group_by.py#L90-L92 "I'd assume the hosts that matched the group_by and weren't already in the group just get added to the group?" More like: "the group is added to the host" based on th

Re: [ansible-project] Ansible 1.4.4 update resolves issue with newer pip

2014-01-06 Thread James Tanner
Ansible 1.4.4 has been released to fix a minor issue with newer versions of pip dropping the "—use-mirrors" parameter. The release has been pushed to http://ansibleworks.com/releases/ and to pypi. -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Galaxy username rules

2014-01-06 Thread James Tanner
Check if this commit resolves your issue: https://github.com/ansible/ansible/commit/ccbc99fe4fa415a7d30ab173a3d5d8733cd50ef8 On Jan 6, 2014, at 6:15 AM, Michael Heča wrote: > Hi, > > I have problem with username michael.heca to Galaxy. Role is not installable > from this account, because '.'

Re: [ansible-project] Problem with key_options

2014-01-02 Thread James Tanner
Please retest against devel/HEAD. There have been a few refactors of authorized_key since the 1.4.x releases. On Jan 2, 2014, at 9:30 AM, Jürgen Haas wrote: > Looks like Ansible 1.4.x behaves different form earlier versions with > key_options in the module authorized_key. The following task re

Re: [ansible-project] service fails to notice postgresql has started on FreeBSD

2014-01-02 Thread James Tanner
What version of freebsd and ansible are you using? On Dec 30, 2013, at 4:16 PM, Dan Langille wrote: > I have this in a playbook: > > - name: start > service: name=postgresql enabled=yes state=started > tags: postgresql-server > > When I run it I see: > > > > # ansible-playbook jail-postgre

Re: [ansible-project] AWX install error on Ubuntu 13.10 Saucy

2013-12-23 Thread James Tanner
Please send AWX issues to i...@ansibleworks.com On Dec 21, 2013, at 6:32 PM, Zach Lym wrote: > I received the following error while running sudo sh setup.sh on Ubuntu 13.10 > Saucy: > > TASK: [packages_ubuntu | install awx package via apt] > * > failed: [127.0.0.1] =

Re: [ansible-project] Registered variables and templates

2013-12-19 Thread James Tanner
On 12/10/2013 03:16 AM, Giorgio Valoti wrote: Hi all, If I want to use the result of a command within a template I use `register`: - name: gather some facts command: ls -l /etc register: etc_contents and then, in my template: # {{ ansible_managed }} {% for d in etc_contents.stdout_lines

Re: [ansible-project] How should I debug the git module hanging when specifying a hash for the version?

2013-12-19 Thread James Tanner
On 12/11/2013 09:25 AM, Cristian Necula wrote: Hello, I am pretty new to ansible. I have used it for a week and succesfully created some playbooks for orchestrating my server. I have run into an issue using the git module. I have a playbook that clones a private repo. It works great for the

Re: [ansible-project] Help formatting local_action output to facts

2013-12-19 Thread James Tanner
On 12/19/2013 10:26 AM, David Neudorfer wrote: How do I get my task to return the output as key=value pairs? I'd like to set the four values returned when I do msg= to key name nameserver1,2,3,4. - debug: msg="{{route53_hosted_zones.stdout.split() }}" - debug: var={{route53_hosted_zones.stdou

Re: [ansible-project] Overriding nested role variable from playbook

2013-12-19 Thread James Tanner
On 12/17/2013 10:58 AM, Brian Tatnall wrote: I'm getting an error when I try to override a nested role variable from a playbook. Example: appservers.yml --- - hosts: appservers roles: - common - { role: foo, foo: { version: 1.4.1 } } role/foo/vars.yml --- foo: version: 1.4.0 Ou

Re: [ansible-project] File exists: '/home/travis/.fireball.keys'

2013-12-19 Thread James Tanner
On 12/19/2013 10:38 AM, Mathias Bogaert wrote: I've just disabled accelerated mode, the issue is still there. On Thu, Dec 19, 2013 at 3:37 PM, James Tanner <mailto:tanner...@gmail.com>> wrote: On 12/17/2013 01:34 PM, Mathias Bogaert wrote: Hi, I&#

Re: [ansible-project] service (systemd vs. init.d)

2013-12-19 Thread James Tanner
On 12/12/2013 03:00 PM, Xu Chen wrote: I have systemd installed on debian wheezy, but most of the packages come with init.d scripts by default. Some services would not behave well under ansible management. One example is quagga.. I have: root@server:~# systemctl status quagga.service quagga.se

Re: [ansible-project] File exists: '/home/travis/.fireball.keys'

2013-12-19 Thread James Tanner
On 12/17/2013 01:34 PM, Mathias Bogaert wrote: Hi, I'm trying to get Ansible's accelerated mode to work on Travis CI, but I'm getting OSError: [Errno 17] File exists: '/home/travis/.fireball.keys' See here: https://travis-ci.org/analytically/hadoop-ansible/builds/15598716 From the log we

Re: [ansible-project] loop with_together and register

2013-12-17 Thread James Tanner
Could you copy your vars and the playbook to a gist(gist.github.com) ? The formatting is a bit hard to read in this email. It would also be nice to see the output of -debug: var=ntty after the "getting tty" task so that we understand what the datastructure looks like. On 12/17/2013 11:48 AM,

Re: [ansible-project] Move files?

2013-12-17 Thread James Tanner
- shell: if [ -f /thepath/* ]; then ; fi On 12/17/2013 11:18 AM, Timothy Gerla wrote: Sorry, my bad--"command" doesn't let you use shell wildcards and stuff, but "shell" does, as you found. :) -Tim On Tue, Dec 17, 2013 at 9:16 AM, Michael Jeffrey > wrote: I

Re: [ansible-project] Request for testing: upgraded ssh handling now on development HEAD

2013-12-17 Thread James Tanner
for service, possible typo in service name?, aborting ...ignoring ok: [targetsystem] => (item=cpuspeed) PLAY RECAP **** targetsystem: ok=2changed=1unreachable=0 failed=0 2013/12/16 James Tanner mailto:ta

Re: [ansible-project] Request for testing: upgraded ssh handling now on development HEAD

2013-12-16 Thread James Tanner
ssh_alt has been merged in again with numerous fixes: https://github.com/ansible/ansible/pull/5247 We have seen impressive performance increases from using this connection method and I would like to thank Jerome Wagner for all the work he has put into it. Per Michael’s previous email, please sh

Re: [ansible-project] Associate AWS EC2 elastic IP address with instance

2013-12-13 Thread James Tanner
On 12/13/2013 04:15 PM, Viacheslav Kuzmenko wrote: I've already upgraded python-boto to the latest version 2.20.0 and everything works fine. Thanks a lot for your help! -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] Associate AWS EC2 elastic IP address with instance

2013-12-13 Thread James Tanner
Are you sure? boto 2.20.0 was only released yesterday. https://github.com/boto/boto On 12/13/2013 03:36 PM, Viacheslav Kuzmenko wrote: 2.3.0 пятница, 13 декабря 2013 г., 22:27:03 UTC+2 пользователь James Tanner написал: What version of python-boto do you have installed? On 12/13

Re: [ansible-project] Associate AWS EC2 elastic IP address with instance

2013-12-13 Thread James Tanner
What version of python-boto do you have installed? On 12/13/2013 01:36 PM, Viacheslav Kuzmenko wrote: Hi, I'm trying to associate AWS EC2 elastic IP address with instance but I'm getting the following error: PLAY [EC2 instance] *** TASK:

Re: [ansible-project] Issues with connecting to a host

2013-12-13 Thread James Tanner
On 12/13/2013 11:11 AM, Drew Decker wrote: Oh wow - yup there’s a huge difference. When I type “-c ssh” its REALLY fast, and I get no errors at all. -- Drew Decker Sent with Airmail On December 13, 2013 at 10:00:32 AM, James Tanner (tanner...@gmail.com <mailto://tanner...@gmail.com>)

  1   2   >