[ansible-project] Re: Ansible 2.1.2 RC5 is ready for testing

2016-09-27 Thread Joaquin Menchaca
Is docker core module now working in this release? It would be nice to have docker functionality. * https://github.com/ansible/ansible-modules-core/issues/4047 * https://github.com/ansible/ansible-modules-core/pull/4048/commits -- You received this message because you are subscribed to the

[ansible-project] Question: with_sequence and registered variables not having anticipated outcome

2016-09-27 Thread Chris Stobie
I have a playbook that creates an ec2 instance and from that creation I want to register the output as a var. From there I would use the registered var to create and attach an ebs volume. However I'm running into the following error. - name: Create EC2 instance for zone A ec2:

[ansible-project] Question: with_sequence and registered vars when creating ec2 instance

2016-09-27 Thread Christopher Stobie
I have a playbook that creates an ec2 instance and from that creation I want to register the output as a var. From there I would use the registered var to create and attach an ebs volume. However I'm running into the following error. - name: Create EC2 instance for zone A ec2:

[ansible-project] Beginning Adventures with Docker Module

2016-09-27 Thread Joaquin Menchaca
I created a vagrant environment to rapidly test code, and a custom inventory.py. But alas, *hosts: dockerexp.dev* doesn't work, so screw it, *hosts: all*. Now I have functional environment, time to do some docker stuff, try a simple

[ansible-project] How do I change a vmware VM network after deployment.

2016-09-27 Thread Mike Schlottman
I cloned a vmware VM from a template. Now I need to change the network to a different network port group. I tried using vsphere_guest to change the network, but reconfigure only seems to work for CPU, Memory and CDROM. Is there some other way I should do this? Being able to set these

[ansible-project] Ansible Tower skipping valid tasks without even acknowledging they exist.

2016-09-27 Thread Ian Dennison
I am running a playbook that adds a subdirectory on the Ansible Tower host (defined as a group of Servers with one entry) for every userid name in a variables list. I have integrated the variables and inventories from an existing command line playbook into Ansible Tower. This is the start of

[ansible-project] ansible hang on setup stage

2016-09-27 Thread William Muriithi
Hello Sorry for the previous mail, went out accidentally before I had prepared. ansible 2.1.1.0 centos 6.8 (control machine) RHEL 6.6 (Managed machine) I have a role that works fine with all the rest of the systems, but will hang at setup stage on two systems. ssh server configuration is

[ansible-project] ansible hang on setup stage

2016-09-27 Thread William Muriithi
Hello, -- 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 this group, send email to

[ansible-project] Re: os_server fails with "Error in creating instance (Inner Exception: create() takes at least 4 non-keyword arguments (2 given))"

2016-09-27 Thread Richard Eggert
I think I found the problem. Over time, a line in Shade's openstackcloud.py changed from this (in v1.1 and v1.2): server = self.manager.submitTask(_tasks.ServerCreate( name=name, image=image, flavor=flavor, **kwargs)) to this (in v1.3-v1.11): server = self.manager.submitTask(_tasks.ServerCreate(

[ansible-project] Re: os_server fails with "Error in creating instance (Inner Exception: create() takes at least 4 non-keyword arguments (2 given))"

2016-09-27 Thread Richard Eggert
After digging through the source code, I believe I've tracked the problem down to the following call in _tasks.py in Shade: class ServerCreate(task_manager.Task): def main(self, client): return client.nova_client.servers.create(**self.args) This appears to be calling the following

[ansible-project] Re: Blockinfile indentation

2016-09-27 Thread ZillaYT
This seems to be broken in Ansible 2.1.1.0. On Thursday, July 28, 2016 at 2:32:40 PM UTC-4, Alli wrote: > > You can use a block indentation indicator > http://www.yaml.org/spec/1.2/spec.html#id2793979 > > e.g: > > - blockinfile: > dest: /etc/postfix/master.cf > insertafter: "^submission

[ansible-project] Service Module ERROR : No JSON Could be decoded

2016-09-27 Thread mohan . kaimal
ansible --version ansible 2.1.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides While running the below playbook , i'm getting JSON object error at the service stop level . --- - hosts: all become: yes gather_facts: yes tasks: -

[ansible-project] Python module import errors on devel, Ubuntu 16.04

2016-09-27 Thread Stephen Granger
I was looking to start work on a new module, start writing tests, after rebase-ing devel I'm now getting an error when trying to run Ansible from source on Ubuntu 16.04. This error has only started occurring in the past week, I've run from devel previously to test other modules on this same host.

[ansible-project] Re: os_server fails with "Error in creating instance (Inner Exception: create() takes at least 4 non-keyword arguments (2 given))"

2016-09-27 Thread Richard Eggert
Is there any way to obtain the stack trace of the original exception, so I could at least determine where the mismatch is occurring? Rich On Monday, September 26, 2016 at 6:11:32 PM UTC-4, Richard Eggert wrote: > > I managed to get the os_server_facts module working, but when I try to use >

[ansible-project] aws ec2_key module permission denied error in ANSIBLE TOWER

2016-09-27 Thread pinky
Hi all, Iam new bee to Ansible tower, When iam running this module in tower it shows me permission denied.My credentials for aws are correct and it autheticates successfully in tower .But When loading this module it shows something like this :+1: --- - name: keypair creation

[ansible-project] Re: os_server fails with "Error in creating instance (Inner Exception: create() takes at least 4 non-keyword arguments (2 given))"

2016-09-27 Thread Richard Eggert
Unfortunately, I don't have a choice in this case. On Tuesday, September 27, 2016 at 10:29:42 AM UTC-4, David Shrewsbury wrote: > > This is likely from the lower level python-novaclient library. Given all > of your issues with > version dependency hell, you've probably got some mix of libraries

[ansible-project] I can't execute java program

2016-09-27 Thread 刘松
Hi, May I ask for execute java program with ansible? I execute a java program (spring boot project, a jar package for java web site) ansible ofbiz1 -m shell -a "chdir=/opt/CassEC-OrderSupports nohup java -jar product.jar &", it echo success ,but in fact,it do nothing! the java program

[ansible-project] Ansible 2.1.2 RC5 is ready for testing

2016-09-27 Thread James Cammarata
Hi all, we're happy to announce that RC5 for 2.1.2 is now available for testing. This release candidate fixes a bug introduced in the mount module in RC4. How do you get it? -- The tar.gz of the release can be found here:

Re: [ansible-project] Re: ansible Error while installation

2016-09-27 Thread Ramesh
Thanks, fixed. On Mon, Sep 19, 2016 at 2:15 PM, engcheng wrote: > Hi Rameshs, do you have a ansible.cfg config file ready in /etc/ansible? > > On Saturday, September 17, 2016 at 4:52:49 PM UTC+8, SR wrote: >> >> Hi Here, >> >> While Im installing the ansible on MacOS X EI

[ansible-project] Service module error : NO JSON object could be decoded

2016-09-27 Thread mohan . kaimal
ansible --version ansible 2.1.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides While running the below playbook , i'm getting JSON object error at the service stop level . --- - hosts: all become: yes gather_facts: yes tasks: -

[ansible-project] Re: [ansible-devel] Re: Ansible 2.1.2 RC4 is ready for testing

2016-09-27 Thread James Cammarata
Good catch Jesse, we're looking into it and we'll cut RC5 asap. James Cammarata Ansible Lead/Sr. Principal Software Engineer Ansible by Red Hat twitter: @thejimic, github: jimi-c On Tue, Sep 27, 2016 at 1:28 AM, Jesse Pretorius wrote: > On Monday, 26 September 2016

[ansible-project] Re: Ansible 2.1.2 RC4 is ready for testing

2016-09-27 Thread tkuratomi
On Monday, September 26, 2016 at 11:28:06 PM UTC-7, Jesse Pretorius wrote: > > On Monday, 26 September 2016 20:57:14 UTC+1, James Cammarata wrote: >> >> Hi all, we're happy to announce that RC4 for 2.1.2 is now available for >> testing. >> > > Unfortunately I get a pretty quick fail: > > >

[ansible-project] Re: os_server fails with "Error in creating instance (Inner Exception: create() takes at least 4 non-keyword arguments (2 given))"

2016-09-27 Thread David Shrewsbury
This is likely from the lower level python-novaclient library. Given all of your issues with version dependency hell, you've probably got some mix of libraries that just don't gel together. If it's possible, I'd highly recommend against using any Centos-based system. On Monday, September

Re: [ansible-project] How to access a certain element of a register variable in a loop

2016-09-27 Thread ishan jain
If you know what you are looking for, isn't this the simplest solution - when: item.item == 'sally' On Monday, 26 September 2016 19:07:04 UTC+2, ZillaYT wrote: > > This gave me a clue. Loop through a registered variable with with_dict in > Ansible >

[ansible-project] Re: how to verify all parameters are set and different from space in a csv file ?

2016-09-27 Thread fanvalt
I had before counting for the parameters set: - name: Si les parametres existent mais non renseignes, on les declare empty set_fact: "{{ item }}" : '[]' with_items: - KARAFHTTPTIMEOUT - dbType when: "{{ item }} is none or {{ item }}|trim == ''" Le mardi 27 septembre 2016

[ansible-project] Re: how to verify all parameters are set and different from space in a csv file ?

2016-09-27 Thread fanvalt
Finally this is still not OK as this bypass solution only works for ampty parameters. if parameters are set but not intialized, or set to space, this is not ok Le mardi 27 septembre 2016 11:44:40 UTC+2, fanvalt a écrit : > > Hello, > > I read a csv file with the lookup command with a loop

[ansible-project] Re: how to verify all parameters are set and different from space in a csv file ?

2016-09-27 Thread fanvalt
correcting the when clause: when: compte|int != 2 Le mardi 27 septembre 2016 13:08:36 UTC+2, fanvalt a écrit : > > I found a "bypass" way to proceed, but any suggestion is welcome: > - set_fact: > compte: "{{ compte|int +1 }} " >with_items: > - "{{

[ansible-project] Re: how to verify all parameters are set and different from space in a csv file ?

2016-09-27 Thread fanvalt
I found a "bypass" way to proceed, but any suggestion is welcome: - set_fact: compte: "{{ compte|int +1 }} " with_items: - "{{ KARAFHTTPTIMEOUT|default([]) }}" - "{{ dbType }}" - fail: msg: "{{ 2 - compte|int}} parameters are missing"

[ansible-project] Re: how to verify all parameters are set and different from space in a csv file ?

2016-09-27 Thread fanvalt
I understand the |default([]) can be used to run a loop only if the item is not an empty list, But I can't find a way to proceed to quit the playbook if one parameter is missing: vars: booleen: False - set_facts: booleen: True with_items: - "{{ KARAFHTTPTIMEOUT|default([])

[ansible-project] Re: how to verify all parameters are set and different from space in a csv file ?

2016-09-27 Thread fanvalt
The purpose is that the playbook fails if some parameters are not defined in the csv file Le mardi 27 septembre 2016 11:44:40 UTC+2, fanvalt a écrit : > > Hello, > > I read a csv file with the lookup command with a loop on the items: > >tasks: > - set_fact: > "{{ item.name }}":

[ansible-project] how to verify all parameters are set and different from space in a csv file ?

2016-09-27 Thread fanvalt
Hello, I read a csv file with the lookup command with a loop on the items: tasks: - set_fact: "{{ item.name }}": "{{ lookup('csvfile', '{{ item.csvvar }} file=vars/fvaltat.csv delimiter=; col=1') }}" with_items: - { name: 'KARAFHTTPTIMEOUT', csvvar: 'TOTO' }