Re: [ansible-project] ansible-playbook and jenkins

2014-10-13 Thread Subramanian Olagappan
Thanks Jeroen. This worked. On Mon, Oct 13, 2014 at 11:07 AM, Jeroen Hoekx jeroen.ho...@hamok.be wrote: On 12 October 2014 07:21, olga osu...@gmail.com wrote: I'm running ansible-playbook command in Jenkins, when ansible-playbook command is executed, the output is buffered and I see the

Re: [ansible-project] syntax error in vars bubstution [ shell module ]

2014-10-13 Thread Michael DeHaan
Quoting also did not work. I added sh before the {{ and it worked. Please show me what you tried and what the output was? Thanks! On Fri, Oct 10, 2014 at 5:24 AM, olga osu...@gmail.com wrote: Hi Michael, Quoting also did not work. I added sh before the {{ and it worked. tasks: -

Re: [ansible-project] Globally pass variable

2014-10-13 Thread Michael DeHaan
It is not possible to do this. On Sun, Oct 12, 2014 at 7:32 PM, Zhukov Pavel gel...@gmail.com wrote: Is it possible to specify variable for a module to use it in every call of that module? E.g i have multiple calling to docker and docker_image modules inside playbook, but since i have a

Re: [ansible-project] Include ansible-galaxy playbooks from another playbook

2014-10-13 Thread Michael DeHaan
Now try to use an include statement in my role playbook I'm having a bit of difficulty following. Galaxy is only a mechanism of downloading roles, not playbooks, so I'm currently understanding this to mean you seem to be requesting that roles that are not found are not an error? Can you perhaps

[ansible-project] ansible vs ssh-keys [Re: Globbing with Lookup]

2014-10-13 Thread Wawrzek Niewodniczanski
On Friday, 10 October 2014 08:50:11 UTC+1, Navid Paya wrote: Hi all Not sure if this is even the right tile. So I have a set of SSH keys, I want to be used as authorized keys for users. I've put all of them in a directory and am trying to do the job but nothing happens. Hi Navid, I 'm

[ansible-project] update_cache=yes fails on Post-Invoke-Success

2014-10-13 Thread Leonard Ehrenfried
Hi list, I'm having a problem with a freshly started Ubuntu VM when I like to run my playbook. I'm doing a very simple apt:update_cache=yes. The task fails with the following error: apt.cache.FetchFailedException: E:Problem executing scripts APT::Update::Post-Invoke-Success 'touch

[ansible-project] Dependencies between tasks possible?

2014-10-13 Thread berndadamowicz
Hi All! Just want to say hello to all first since this is my first post to this list! My questions is if there is a way to have dependencies between tasks. Example: I have one task which puts a shell script in place, and the a second task which establishes a cron job which uses this script.

[ansible-project] Loop the Hosts in Ansible Playbook with_item or with any condition

2014-10-13 Thread aditya varma
Want to pass a json variables containing couple of ansible hosts to a ansible-playbook so the variables can be looped in for hosts one by one.similar to --- - hosts: {{ item.sample.server }} sudo: true tasks: - name: print debug: msg= {{ item.sample.jar }} is being deployed to

Re: [ansible-project] Playbooks that depend on other playbooks?

2014-10-13 Thread Cody Krieger
That's correct. On Thursday, October 9, 2014 2:23:18 PM UTC-7, Michael DeHaan wrote: When you say depends, I assume you are meaning you are using playbook includes, so the provisioning playbook includes the config playbook? On Thu, Oct 9, 2014 at 4:42 PM, Cody Krieger co...@krieger.io

[ansible-project] Re: Dependencies between tasks possible?

2014-10-13 Thread James Martin
If the task that copies the shell script fails, then the following tasks (in this case the cron job task) will not execute for that host. - James On Monday, October 13, 2014 4:00:27 AM UTC-4, berndad...@googlemail.com wrote: Hi All! Just want to say hello to all first since this is my

[ansible-project] AWS IAM Roles

2014-10-13 Thread Steven Ringo
Hi, Has anyone had any experience managing AWS IAM roles with Ansible? For example creation of IAM roles, groups etc. I would like to use IAM roles as the method of providing an instance with access to S3 buckets, as opposed to storing them as environment/config variables on the machine.