Re: [ansible-project] ansible-playbook stops after include

2015-09-02 Thread Bob Tanner
On Wednesday, September 2, 2015 at 4:08:30 PM UTC-5, Michael Legleux wrote: > > This configuration works fine with 1.9.2 though. > > - output shows what? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group an

Re: [ansible-project] Re: UnicodeEncodeError

2015-09-02 Thread Toshio Kuratomi
Not a lot to go on... I do see that the two errors are happening in different places. That might be bad news for you as may mean that any fix for 1.9.3 might not be the fix needed for 1.7.2. But let's see what we can find: On Wed, Sep 2, 2015 at 3:41 PM, Eugene Romero wrote: > > TASK: [syslog-

Re: [ansible-project] Simple query on usage of ">" in tasks.

2015-09-02 Thread Brian Coca
it is a YAMLism, allows for multiline content, you may have also seen | used the same way. On Wed, Sep 2, 2015 at 6:25 PM, wrote: > I am going through a playbook, where the tasks have the following format: > > > - name: Start and add that the metadata service to the init sequence > (Ubuntu) > >

[ansible-project] Simple query on usage of ">" in tasks.

2015-09-02 Thread behzad . dastur
I am going through a playbook, where the tasks have the following format: - name: Start and add that the metadata service to the init sequence (Ubuntu) service: > name=ceph-mds state=started enabled=yes args="id={{ ansible_hostname }}" when: ansible_distribution == "Ubu

Re: [ansible-project] Re: UnicodeEncodeError

2015-09-02 Thread Eugene Romero
Hey Toshio! Thanks for your reply. Since these are production machines, I can only use 1.7.2 at the moment. However, I installed the newest ppa version (1.9.2) on a VM cluster to test. The error stills pops up. The error happens when it tries running the first task from the second playbook. Howe

Re: [ansible-project] Conditional loop messes up the following task that does a with_item

2015-09-02 Thread Samnang Sen
The error is within my original msg. I was using the when to build my deploy list. -- 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.

Re: [ansible-project] Looking for a way execute tasks in included file based on condition

2015-09-02 Thread Joseph Djomeda
Hello Brian, Thanks for the email. So there is no way to skip the inclusion of the file in the first place? Best Regards, On Wed, Sep 2, 2015 at 8:42 PM Brian Coca wrote: > The when conditions will not avoid issues with a undefined or > incorrectly typed var in a with_ , as they get executed

Re: [ansible-project] Re: Ansible 2.0 os_server 404 image not found

2015-09-02 Thread Vallard
The 404 I believe comes from ansible defaulting to the v2 for glance, in which case no images are found and thus the 404 error. Our openstack only has v1 support. When I run glance image-list with the OS_IMAGE_API_VERSION=1 the command line tools show images. This is the new behavior change in

[ansible-project] Re: os_server module

2015-09-02 Thread Antoine Voiry
I will try tomorroz On Friday, August 28, 2015 at 10:09:40 PM UTC+1, Monty Taylor wrote: > > Yeah - if you're v3 passing in domain is important. When you add > user_domain_id and project_domain_id - what error do you get? (you have to > pass in both) > > On Friday, August 28, 2015 at 12:19:16 AM

Re: [ansible-project] ansible-playbook stops after include

2015-09-02 Thread Michael Legleux
This configuration works fine with 1.9.2 though. On Tuesday, September 1, 2015 at 5:54:09 PM UTC-7, Michael Legleux wrote: > > So what I posted before was a simplification to do everything separately. > Initially, I had a role whose main.yml task includes qt.yml and wx.yml > (which are next to ma

Re: [ansible-project] Looking for a way execute tasks in included file based on condition

2015-09-02 Thread Brian Coca
The when conditions will not avoid issues with a undefined or incorrectly typed var in a with_ , as they get executed for each item inside the with_. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] Re: RDS Module "promote" function not working. Reporting "ok", but not making a change.

2015-09-02 Thread MB
Same problem here. No relevant output or error, but slave is not promoted. We use Ansible 1.9.2 and Boto 2.37.0. Should a Github issue be opened? On Tuesday, June 23, 2015 at 12:07:28 PM UTC-5, Sena Heydari wrote: > > The role play: > > - name: Promote Read-Replica to New Standalone RDS Instance >

Re: [ansible-project] accelerate mode and custom python interpreter (virtualenv)

2015-09-02 Thread Toshio Kuratomi
I haven't looked at the code yet to see if there's something about accelerate that may interfere with ansible_python_interpreter but I have a feeling that you might not get any speedup even if you get it working. accelerate was written before openssh's controlpersist was widespread. Now that even

Re: [ansible-project] Conditional loop messes up the following task that does a with_item

2015-09-02 Thread Brian Coca
it would help to see the error, I'm going to guess you need a when: on the last task that skips the 'skipped' items., also you should not need to sudo in shell. On Wed, Sep 2, 2015 at 3:04 PM, Samnang Sen wrote: > I store the modules I need to deploy within Consul. It consist of both Perl > and P

Re: [ansible-project] Re: Ansible 2.0 os_server 404 image not found

2015-09-02 Thread Vallard
Yes. > On Sep 2, 2015, at 12:03 PM, Greg DeKoenigsberg wrote: > > So this is specifically in the os_ modules, right? > > --g > >> On Wed, Sep 2, 2015 at 2:34 PM, V Benincosa wrote: >> >> well, that was the wrong way to go. Shade reinstalled version >> python-glanceclient 1.0.0 so I guess

Re: [ansible-project] Re: UnicodeEncodeError

2015-09-02 Thread Toshio Kuratomi
There have been sporadic UnicodeErrors that crop up from time to time. I've been trying squash them as they come up. 1.7.2 is pretty old so it won't have a lot of those fixes. Are you able to test (at least the failing task) on a newer version of ansible? That would tell you if the problem has b

Re: [ansible-project] Use hostvars as hosts names in playbooks

2015-09-02 Thread Emmanuel Lacour
Le mercredi 2 septembre 2015 14:34:02 UTC+2, Brian Coca a écrit : > > hostvars are not usable in 'hosts:' clause, use group_by if you want > to create adhoc groups for use in subsequent plays. > > thanks, thought I discovered delegate_to which seems to be exacly what I need, i.e. a playbook on

[ansible-project] Re: Ansible 2.0 os_server 404 image not found

2015-09-02 Thread James Martin
I've successfully launched servers with os_server as of today, with the latest version of shade, so I don't think the module is completely broken. I do see that a 404 is being returned in your error, which is a "page not found" status code (https://en.wikipedia.org/wiki/HTTP_404). My guess is

[ansible-project] Conditional loop messes up the following task that does a with_item

2015-09-02 Thread Samnang Sen
I store the modules I need to deploy within Consul. It consist of both Perl and PHP modules so on our web servers I only want to install the modules associated with PHP. The following playbook works as long as there are TWO matching modules. In my test case I have two keys with one of them being

Re: [ansible-project] Re: Ansible 2.0 os_server 404 image not found

2015-09-02 Thread Greg DeKoenigsberg
So this is specifically in the os_ modules, right? --g On Wed, Sep 2, 2015 at 2:34 PM, V Benincosa wrote: > > well, that was the wrong way to go. Shade reinstalled version > python-glanceclient 1.0.0 so I guess I need to figure out why glance doesn't > return any images. Metacloud uses icehouse

[ansible-project] Re: Ansible 2.0 os_server 404 image not found

2015-09-02 Thread V Benincosa
Running: export OS_IMAGE_API_VERSION=1 (and placing in .bash_profile) will now make glance image-list show something... but ansible still gets the same error. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

[ansible-project] Looking for a way execute tasks in included file based on condition

2015-09-02 Thread Joseph Djomeda
Hello Guys, This has been probably solved before so apologies if this is a repeat. I was confused about tasks in a include file being run even though the condition for the include itself is not true. so in my main.yml I have an include system like a switch kind of logique: say - include: this.ym

[ansible-project] Re: Ansible 2.0 os_server 404 image not found

2015-09-02 Thread V Benincosa
well, that was the wrong way to go. Shade reinstalled version python-glanceclient 1.0.0 so I guess I need to figure out why glance doesn't return any images. Metacloud uses icehouse. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To uns

[ansible-project] Re: Ansible 2.0 os_server 404 image not found

2015-09-02 Thread V Benincosa
I downgraded python-glanceclient to 0.19.0 and it seems to get past that error. Now I get: failed: [localhost] => (item=lab01) => {"extra_data": null, "failed": true, "item": "lab01", "msg": "Error fetching image list: Expected endpoint"} So it looks like I'll have to downgrade most of my pyth

[ansible-project] Ansible 2.0 os_server 404 image not found

2015-09-02 Thread V Benincosa
Hi! Checking out the 2.0 release and having some problems launching machine. When I run: ansible-playbook lab-machines.yml - name: Ensure lab machines are up connection: local hosts: localhost vars_files: - vars/metacloud_vars.yml tasks: - name: Ensure lab machines are up

[ansible-project] win_updates not working

2015-09-02 Thread Dimitri Yioulos
I'm trying to use the extras module win_updates to update my Windows servers. The play runs without failure, but no updates are applied. Ideally, I want the install all available updates (e.g. critical, important, optional, etc.). I've created a play to look like this: --- - hosts: windows

Re: [ansible-project] variable precedence seems hopelessly broken

2015-09-02 Thread Dan Stillman
I haven't received a response on this, but since I posted it, the various variable precedence bugs I've reported have continued to reappear and disappear through successive commits. Usually when one is fixed, another is broken. One issue [1] was even closed as a "misunderstanding" (despite the

Re: [ansible-project] Re: is su_exe/become_exe broken in v2?

2015-09-02 Thread Brian Coca
Not as much 'changed' as 'yet to be implemented'. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.

Re: [ansible-project] Re: is su_exe/become_exe broken in v2?

2015-09-02 Thread Edgars
su_flags worked before, why it was changed? trešdiena, 2015. gada 2. septembris 17:02:22 UTC+2, Brian Coca rakstīja: > > They currently only work for sudo > > > -- > Brian Coca > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscr

Re: [ansible-project] Re: is su_exe/become_exe broken in v2?

2015-09-02 Thread Brian Coca
They currently only work for sudo -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to th

[ansible-project] Re: is su_exe/become_exe broken in v2?

2015-09-02 Thread Edgars
I just noticed that su_flags and become_flags settings are ignored. Edgars trešdiena, 2015. gada 2. septembris 12:02:39 UTC+2, Edgars rakstīja: > > Hi > > I just pulled latest ansible from git and installed it. And it seems that > su_exe functionality is not working anymore. Regardless of what

Re: [ansible-project] galaxy.ansible.com is not responding

2015-09-02 Thread Brian Coca
@Greg the problem was solved earlier this morning (EDT), the site was unavailable for a time. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [ansible-project] Re: is su_exe/become_exe broken in v2?

2015-09-02 Thread Edgars
Confirmed trešdiena, 2015. gada 2. septembris 15:52:02 UTC+2, Brian Coca rakstīja: > > just fixed become_exe also > > On Wed, Sep 2, 2015 at 9:43 AM, Edgars > > wrote: > > Thanks, it works now with su_exe but still does not work with > become_exe. > > But I am not sure if it supposed to be wo

Re: [ansible-project] galaxy.ansible.com is not responding

2015-09-02 Thread Greg DeKoenigsberg
Not seeing this... any details? From the web UI or the client? Is it still happening? On Wed, Sep 2, 2015 at 6:03 AM, Cenk Çetinkaya wrote: > Error message is ERR_TOO_MANY_REDIRECTS on chrome. ansibel-galaxy install > command gives error that message is "the API server (galaxy.ansible.com) is > n

Re: [ansible-project] Ansible galaxy syan READM.md is not present when importing/updating role

2015-09-02 Thread James Cammarata
Hi Mauricio, we actually just ran into this with another user this morning. It appears that the code we have to read in the README.md files does not like Unicode, so the workaround currently is to remove non-ascii characters from it. We'll have a fix in for this in the next release. Sorry for the i

Re: [ansible-project] Re: is su_exe/become_exe broken in v2?

2015-09-02 Thread Brian Coca
just fixed become_exe also On Wed, Sep 2, 2015 at 9:43 AM, Edgars wrote: > Thanks, it works now with su_exe but still does not work with become_exe. > But I am not sure if it supposed to be working with become_exe. > > Edgar > > trešdiena, 2015. gada 2. septembris 12:02:39 UTC+2, Edgars rakstīja:

[ansible-project] Re: is su_exe/become_exe broken in v2?

2015-09-02 Thread Edgars
Thanks, it works now with su_exe but still does not work with become_exe. But I am not sure if it supposed to be working with become_exe. Edgar trešdiena, 2015. gada 2. septembris 12:02:39 UTC+2, Edgars rakstīja: > > Hi > > I just pulled latest ansible from git and installed it. And it seems tha

Re: [ansible-project] is su_exe/become_exe broken in v2?

2015-09-02 Thread Brian Coca
I just fixed this, pull latest and try again. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To

[ansible-project] os x yosimite, strange vault problems with gvim

2015-09-02 Thread pixel fairy
gvim never saves changes to files in vault. vim does just fine. just putting this here for google to find before someone else wastes $i_wont_admit time on it. dont have time to do the right thing and figure out why. -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Ansible galaxy syan READM.md is not present when importing/updating role

2015-09-02 Thread Greg DeKoenigsberg
We'll look into it. On Sep 2, 2015 8:24 AM, "Mauricio Sánchez" wrote: > I'm trying to import/update my roles hosted on Github but Ansible Galaxy > says: > > FAILED: > Failed to find a README.md. All role repositories must include a > README.md. Please refer to the 'Getting Started' documentation

Re: [ansible-project] os x yosimite, pip tries to make ansible run in python3

2015-09-02 Thread Greg DeKoenigsberg
May be worth a new note in our docs. On Sep 2, 2015 8:54 AM, "pixel fairy" wrote: > yup, the default pip was 3. dont know how that changed. > > On Wednesday, September 2, 2015 at 5:50:15 AM UTC-7, Brian Coca wrote: >> >> you might be using pip3 and need pip2. >> >> >> >> -- >> Brian Coca >> > --

Re: [ansible-project] os x yosimite, pip tries to make ansible run in python3

2015-09-02 Thread pixel fairy
yup, the default pip was 3. dont know how that changed. On Wednesday, September 2, 2015 at 5:50:15 AM UTC-7, Brian Coca wrote: > > you might be using pip3 and need pip2. > > > > -- > Brian Coca > -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] Display Free Mac Address of a VCenter or already used

2015-09-02 Thread Andrea Perini
I'm creating VMs forcing mac address. I'm looking for a way to create a pool of available mac Addresses to use them for creating VMs; or just a way to see which mac addresses on my vCenter are already used by my VMs. Any hints? I've found a module called ansible-provisioning but I can figure out

Re: [ansible-project] os x yosimite, pip tries to make ansible run in python3

2015-09-02 Thread Brian Coca
you might be using pip3 and need pip2. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post

Re: [ansible-project] Issue with default value

2015-09-02 Thread Brian Coca
default is a fitler from the jinaj2 project, the 'fix' would have to happen there On Tue, Sep 1, 2015 at 8:52 AM, Paul Tötterman wrote: >> ((ansible_eth1|default({})["ipv4"]|default({}))["address"] | >> default("127.0.0.1") > > > Ugh. I was expecting something like try: ... except KeyError: ... >

[ansible-project] os x yosimite, pip tries to make ansible run in python3

2015-09-02 Thread pixel fairy
bonechar:~# pip install ansible Collecting ansible Downloading ansible-1.9.2.tar.gz (927kB) 100% || 929kB 641kB/s Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/local/lib/python3.4/site-packages (from ansible) Requirement already s

Re: [ansible-project] Use hostvars as hosts names in playbooks

2015-09-02 Thread Brian Coca
hostvars are not usable in 'hosts:' clause, use group_by if you want to create adhoc groups for use in subsequent plays. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving email

[ansible-project] galaxy.ansible.com is not responding

2015-09-02 Thread Cenk Çetinkaya
Error message is ERR_TOO_MANY_REDIRECTS on chrome. ansibel-galaxy install command gives error that message is "the API server (galaxy.ansible.com) is not responding, please try again later." -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. T

[ansible-project] Ansible galaxy syan READM.md is not present when importing/updating role

2015-09-02 Thread Mauricio Sánchez
I'm trying to import/update my roles hosted on Github but Ansible Galaxy says: FAILED: Failed to find a README.md. All role repositories must include a README.md. Please refer to the 'Getting Started' documentation regarding role requirements. Once the issue has been corrected in the repsotitor

[ansible-project] Use hostvars as hosts names in playbooks

2015-09-02 Thread Emmanuel Lacour
Dear ansible users, I try to write a paybook where I first get a host name from a host, then would like to do thinks on this host name. Here is a try: --- - name: Get VM inventory hosts: "{{vm}}" gather_facts: False tasks: - debug: msg="{{hostvars[vm]['cluster']}}" - name: Get free h

[ansible-project] Re: How to elegantly change root password with mysql_user

2015-09-02 Thread esco real
I do this (in this order): - name: set password mysql_user: name={{ mysql_user }} password={{ hostvars[product + '_' + inventory_hostname + '_' + mysql_user].password }} - name: create client config template: src=client.my.cnf dest=~/.my.cnf mode=0600 client.my.cnf: [client] user={{ mysql

[ansible-project] How to elegantly change root password with mysql_user

2015-09-02 Thread Eric Feliksik
When I install mysql, default root password is empty. I then use ansible to set the password: ``` - name: set root password, if it is empty now mysql_user: login_user=root login_password='' name=root password='{{desired_pass}}' state=present ``` But 2nd time this playbook runs, the task fail

[ansible-project] is su_exe/become_exe broken in v2?

2015-09-02 Thread Edgars
Hi I just pulled latest ansible from git and installed it. And it seems that su_exe functionality is not working anymore. Regardless of what I set as su_exe, ansible tries to execute su. I also tried to set become_exe to something else not su but ansible executes su. [privilege_escalation] bec

Re: [ansible-project] Is there something like puppet librarian or R10K for Ansible?

2015-09-02 Thread Javier Palacios
Its maybe an issue with the expression I did use `where the inventory lives` means under the same directory where is your inventory. So, it looks for roles on /path/to/playbok/roles and then on /path/to/inventory/roles. Javier Palacios On Mon, Aug 31, 2015 at 11:24 PM, Greg DeKoenigsberg wrote:

[ansible-project] accelerate mode and custom python interpreter (virtualenv)

2015-09-02 Thread knacktus
Hi guys, unfortunately I'm on REHL6 without the option to install python packages for the standard python installation. Thus I'm using Ansible from an virtualenv on the managing node. That works fine, except that now I'm running into performance issues. The virtualenv sits on a nfs share which