[ansible-project] Re: Ansible-playbook failing to install packages

2014-11-14 Thread Strahinja Kustudić
Have you tried installing that package manually, since from the looks of the message I would say the package doesn't exist. What distribution are you using? Could you post your playbook? On Friday, November 14, 2014 11:04:20 AM UTC+1, Sakhi Hadebe wrote: > > Hi All, > > I am new and know nothin

[ansible-project] Important BugFix for ControlPersist on RHEL/CentOS 6.6

2014-11-14 Thread Strahinja Kustudić
Red Hat has finally fixed the bug with ControlPersist on RHEL 6.6 which causes Ansible to fail to connect on first try and some other strange behavior. So if you are using RHEL/CentOS 6.6 as your management host, make sure to update to the latest openssh-clients version. https://rhn.redhat.com/

Re: [ansible-project] Re: gp2 volumes with ec2_vol

2014-11-14 Thread Yves Dorfsman
New in version 1.5 according to the documentation: http://docs.ansible.com/ec2_module.html I wish it were better documented though, it's not clear which key you can use in a given volume dictionary. Here is one of the example from the page, which we followed, it worked, but as mentionned, we

Re: [ansible-project] How can I participate to make Ansibel pkgng or portinstal "working" on FreeBSD

2014-11-14 Thread Laurentius Purba
Hello Brian, Thanks for your response. See information below: - Ansible: 1.7.2 - Python: 2.7.6 - FreeBSD: FreeBSD 10.0-RELEASE-p9 Yes, I was able to do the PHP upgrade directly from the command line tools. -Laurentius On Friday, November 14, 2014 3:41:52 PM UTC-5, Brian Coca wrote: >

Re: [ansible-project] How can I participate to make Ansibel pkgng or portinstal "working" on FreeBSD

2014-11-14 Thread Brian Coca
what versions of ansible, python and freebsd? are you able to do the upgrade directly with the command line tools? - 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 fro

Re: [ansible-project] Running role multiple times during playbook

2014-11-14 Thread Brian Coca
As it shows in the docs: http://docs.ansible.com/playbooks_roles.html#role-dependencies you need: allow_duplicates: yes -- 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

Re: [ansible-project] Parse JSON output from uri module

2014-11-14 Thread Petr Sukharev
Working like charm, thanks! i am little confused, my first and second steps get correct data, but now i need to use result[0]... пятница, 14 ноября 2014 г., 22:53:23 UTC+3 пользователь Romeo Theriault написал: > > It looks like zabbix is passing back an array containing the json data. > > Try

Re: [ansible-project] Different hosts inside a role (is it doable, or am i thibking it wrong ?)

2014-11-14 Thread Brian Coca
plays map hosts to tasks, not roles, you need another play. -- 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...@googl

Re: [ansible-project] Parse JSON output from uri module

2014-11-14 Thread Romeo Theriault
It looks like zabbix is passing back an array containing the json data. Try this instead: {{ zabbix_group_id.json.result[0].groupid }} If that doesn't work, what do you get when you do: {{ zabbix_group_id.json.result[0] }} or just {{ zabbix_group_id.json.result }} On Fri, Nov 14, 2014 at 6:27 AM

[ansible-project] Ansible Vault tries to Decode Irrelevant Files

2014-11-14 Thread Firat Arig
Hello, I recently updated our Ansible version at our Jenkins server from 1.6.6 to 1.7.2 and our unencrypted playbooks started requiring vault passes. Two of our environments didn't have any encryption on their group_vars files, but the rest of them had. Prior to the update, it would just work

[ansible-project] Re: ec2 module returning "One or more undefined variables: 'item' is undefined"

2014-11-14 Thread Andy Raj
Here you go - https://github.com/raj-andy1/macguffin On Friday, November 14, 2014 8:24:33 AM UTC-8, Dan Vaida wrote: > > Can you post your playbook(s)? > > On Tuesday, 30 September 2014 18:03:52 UTC+2, Andy Raj wrote: >> >> Hello Fellow ansible users, >> >> I am new to ansible, using version 1.7.2

[ansible-project] How to simulate user first login.

2014-11-14 Thread zelda0102
My virtual machine has a setting that when the first time a user logs in, it creates a home directory for the user automatically if the user does not have a home directory. In my script, I want to achieve: Log in as different users so that they all have home directory setup. But I'm not sure h

[ansible-project] How to use Ansible to log in a machine just for creating a home directory

2014-11-14 Thread zelda0102
I have a virtual machine that when first login as a user, it will create the home directory for the user if it doesn't have one. So just sth like, $ ssh username@myhostname $ Creating directory '/home/username'. How could I use Ansible to do that(just login in order to generate a home director

[ansible-project] Ansible-playbook failing to install packages

2014-11-14 Thread Sakhi Hadebe
Hi All, I am new and know nothing about ansible, just followinga documentation to achieve what I want to achieve. The error below has hindered my progress: TASK: [common | Common: Install packages] * failed: [safire.sanren.ac.za] => {"changed": false, "fail

[ansible-project] How can I participate to make Ansibel pkgng or portinstal "working" on FreeBSD

2014-11-14 Thread Laurentius Purba
Hello, I would like to participate to make Ansibel pkgng or portinstal "working" on FreeBSD. I was trying to update php version from 5.4.28 to 5.4.34 (the port has this version), but was unable to do so. The playbook is as follows: - hosts: 10.0.21.99 remote_user: jdoe sudo: yes tasks:

[ansible-project] Suggestions for organization of small project

2014-11-14 Thread wumpos
Hi, this is going to be a cross post to both ansible and salt user groups. I've spent the last few months going through the docs for both projects and I know both fairly well. In both cases, the major issue I've stumbled against is the organization of projects. I've decided to go back to square

[ansible-project] Valid INI format in local facts

2014-11-14 Thread sandra . kosmalla
Hi, I'm newbie using Ansible (1.7.2) and try to write my first local fact using INI. According to Wikipedia (http://en.wikipedia.org/wiki/INI_file#Format), a INI file with only key-value pairs is a valid INI format. Example: foo=bar So my local fact /etc/ansible/facts.d/test.fact has only key

Re: [ansible-project] executable custom fact

2014-11-14 Thread sandra . kosmalla
Hi, I start learning Ansible with a Puppet background, so the concept of executable facts is well-known. Sometimes it is easier to write a little shell script for a custom fact, so my question is, is it planned to support INI format as output for executable facts? It would make easier writing

[ansible-project] Ansible on Freebsd with pkgng

2014-11-14 Thread Laurentius Purba
Hello all, I have question regarding pkgng for FreeBSD. The idea is I was trying to update php on one of our development servers. The current php version installed is 5.4.28, while we have on the port (/usr/ports/lang/php5) is 5.4.34. Below is the playbook that I have: - hosts: 10.0.21.99 r

[ansible-project] Ansible + Jenkins

2014-11-14 Thread Alex T
Hi! Everybody knows, how to run ansible playbook from jenkins ci? -- 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.co

[ansible-project] Different hosts inside a role (is it doable, or am i thibking it wrong ?)

2014-11-14 Thread Alejandro Comisario
Hi guys, im having a role defined like this on my main playbook.yml, this role runs on the galera hosts : - hosts: galera gather_facts: True roles: - { role: galera, tags: ['galera'] } The main.yml in the tasks directory of the role goes like this: --- - include: mysql.yaml - include

[ansible-project] Running role multiple times during playbook

2014-11-14 Thread Helma hepabolu
Hi, I need to set up a general test server with multiple java applications. To avoid conflicts we decided to add a separate tomcat installation to each app and configure it separately. The final directory structure should look something like this: /develop /app1 /conf /tomcat

[ansible-project] Re: Upgrades and reboots - question

2014-11-14 Thread John Batty
Your server may still be in the process of shutting down when your "wait_for" is executed. So the wait_for could make a connection and think the server is back up when it is actually on its way down... Try setting the delay parameter in the wait_for (e.g to 15) to ensure that the server is dow

[ansible-project] Need guidance with multi-level role variables

2014-11-14 Thread Willard Dennis
Hi all, I have some role variables currently that are single-level, for example a list of IT users: # Members of the IT Dept. it_users: - bill - fred - sam Now, for another role I'm defining, I'll need to include some data for each user, such as UID, password hash, homedir path, so I can

[ansible-project] Parse JSON output from uri module

2014-11-14 Thread Petr Sukharev
Hello! I have some strange problem with register option in role and json fomat. I try to communicate with my Monitoring System (Zabbix) via Zabbix API. A need to send some data, collect some data and make some work around results. Here is output: PLAY [all]

[ansible-project] Re: ec2 module returning "One or more undefined variables: 'item' is undefined"

2014-11-14 Thread Dan Vaida
Can you post your playbook(s)? On Tuesday, 30 September 2014 18:03:52 UTC+2, Andy Raj wrote: > > Hello Fellow ansible users, > > I am new to ansible, using version 1.7.2 on Mac OSx. I am trying to launch > aws instances and install our code on them as part of an automated > deployment process. >

[ansible-project] Re: SSH connections to EC2 hang sporadically

2014-11-14 Thread Tore Olsen
If it helps, I just kill -HUP'ed one of the ssh processes and got a lot of debug output: failed: [host1] => (item=git,supervisor) => {"failed": true, "item": "git,supervisor", "parsed": false} invalid output was: SUDO-SUCCESS-kmkiimakutvlojnbqartowszmpdbndzk OpenSSH_6.2p2, OSSLShim 0.9.8r 8 De

[ansible-project] Re: SSH connections to EC2 hang sporadically

2014-11-14 Thread Tore Olsen
Just thought I'd follow up with a typical output with -; This is a play where I'm installing a couple of apt packages to three AWS hosts (shortened host1-3 for brevity). You see one of the hosts succeed while the other two apparently do not. The one that succeeds is in EU (Ireland) while the

Re: [ansible-project] ansible 1.7.2 with multiline variables using the copy mod's 'content' directive

2014-11-14 Thread Jasper N. Brouwer
I ran into this issue as well. Changing "copy" to "template" works like a charm! I just wanted to say I have no problems with this change, the extra templates needed (in a role) doesn't bother me at all. -- You received this message because you are subscribed to the Google Groups "Ansible Pro

Re: [ansible-project] Re: ansible ovirt module

2014-11-14 Thread Piet83
Hey Vincent, Thank you for your answer. I would be great to alter the vm settings with your module but I don't see anything about it in the API documentation either: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.0/html-single/REST_API_Guide/ For now I will

Re: [ansible-project] Re: ansible ovirt module

2014-11-14 Thread Piet83
Hey Vindent, Thank you for your answer. I would be great to alter the vm settings with your module but I don't see anything about it in the API documentation either: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.0/html-single/REST_API_Guide/ For now I will t

Re: [ansible-project] where to manage common inventory properties

2014-11-14 Thread Tomasz Kontusz
You can get common group_vars, by either using directory per group + symlinks, or putting group_vars next to playbook (they would be loaded in addition to those next to inventory). The second one used to have problems with vars for the same group defined in both places, but you can work around

[ansible-project] Re: Defining Actions to be run in the event of Failure for a Host

2014-11-14 Thread Sankalp Khare
But even this workaround has obvious flaws. What if one of these tasks itself were to fail? Say the instance was registered with the requisite Load Balancer, but then for some reason the DNS record creation failed. In that case it would be really handy to be able to undo the Load Balancer regis

[ansible-project] Re: Defining Actions to be run in the event of Failure for a Host

2014-11-14 Thread Sankalp Khare
Also note that using tasks labelled with when: |failed doesn't cover my use case since it would require me to register the results of each and every task (inside roles too?) in the event of whose failure I want to trigger my rollback/cleanup actions. This approach seems neither practical nor el

[ansible-project] Defining Actions to be run in the event of Failure for a Host

2014-11-14 Thread Sankalp Khare
I am using ansible to create instances in EC2. I set disableApiTermination to true using an AWS CLI invocation for each instance that I create (On that note, I hope https://github.com/ansible/ansible-modules-core/pull/205 gets accepted into the devel branch soon). However, I would like to unset