Re: [ansible-project] Calling the same role from multiple playbooks

2020-01-03 Thread Mehul Ved
Have you had a look at https://docs.ansible.com/ansible/latest/user_guide/playbooks_advanced_syntax.html#yaml-anchors-and-aliases-sharing-variable-values ? On Fri, 3 Jan, 2020, 3:38 AM Claudio M. Lombardo, wrote: > Hello All. > I am trying to solve the following issue. > > - I have a SSSD role

[ansible-project] Limit and selection of group with dynamic inventory

2018-12-19 Thread Mehul Ved
way I can use the tag from applied limit inside the play without having to pass an additional parameter? -- With Regards, Mehul Ved -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receivi

[ansible-project] Re: SSL issue with get_url module

2018-02-21 Thread Mehul Ved
Turned out to be a google cloud issue, not ansible. On Feb 20, 2018 17:53, "Mehul Ved" <mehul.n@gmail.com> wrote: > As a follow up, I tried connecting to devops.rightleads.io from python > and it checking the certificate, it works fine. But, ansible still > seems to

[ansible-project] Re: SSL issue with get_url module

2018-02-20 Thread Mehul Ved
x3.letsencrypt.org',), 'serialNumber': u'03789CEA86C5F31787ED45697AACB172BA58', 'notAfter': 'May 19 11:09:28 2018 GMT', 'version': 3L, 'subject': ((('commonName', u'devops.rightleads.io'),),), 'issuer': ((('countryName', u'US'),), (('organizationName', u"Let's Encrypt"),), (('commonName', u&qu

[ansible-project] SSL issue with get_url module

2018-02-19 Thread Mehul Ved
"remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "sha256sum": "", "src": null, "

Re: [ansible-project] Re: Ansible (Problem install PHP)

2017-11-02 Thread Mehul Ved
7aca1c8%40googlegroups. > com > <https://groups.google.com/d/msgid/ansible-project/3df38b0b-4c79-40c9-866c-7c5ad7aca1c8%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- With Regards, Mehul Ved -- You r

[ansible-project] HTTP Load Balancer for Google Cloud

2017-01-11 Thread Mehul Ved
. The HTTP(S) LB allows me to have SSL termination and also have the routing based on URL. Is this going to be supported in ansible anytime soon? -- With Regards, Mehul Ved -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubs

Re: [ansible-project] Re: Creating a GCE instance with reserved ip address

2017-01-10 Thread Mehul Ved
On Wed, Jan 11, 2017 at 7:16 AM, Tom Melendez <t...@supertom.com> wrote: > > > On Tuesday, January 10, 2017 at 3:38:53 AM UTC-8, Mehul Ved wrote: >> >> A small update, removing the quotes around the IP Address worked: >> GCE_INI_PATH=inventory/gce.ini ansible

[ansible-project] Re: Creating a GCE instance with reserved ip address

2017-01-10 Thread Mehul Ved
tags='dev,trial' network=ansiblenet subnetwork=dev zone=asia-east1-a state=present" - So, is the named ip address part not supported? On Tue, Jan 10, 2017 at 3:57 PM, Mehul Ved <mehul.n@gmail.com> wrote: > I am trying to create a new instance in google compute engin

Re: [ansible-project] Re: Getting hostvars from an intersection of groups

2015-11-05 Thread Mehul Ved
with_items: "{{ ec2.instances | default({}) }}" > > > For example, when I launch 2 more instance with environment of stage and > role of web, and there were already 2 existing instances, then I would get > web03.stage,domain and web04.stage.domain as the tag. > > Hope th

Re: [ansible-project] Getting hostvars from an intersection of groups

2015-10-28 Thread Mehul Ved
-project@googlegroups.com/msg08024.html Is there a better way to handle grouping of servers? Is there anything in the documentation or best practices that I've missed? On Mon, Oct 26, 2015 at 12:13 PM, Mehul Ved <mehul.n@gmail.com> wrote: > Hi Bryan, > Here's what I ge

Re: [ansible-project] Getting hostvars from an intersection of groups

2015-10-26 Thread Mehul Ved
> that won't work also you seem to have mismatched list indecies. > > debug: msg="{{hostvars[group['beta'] | > intersection(groups['db'])[0]]['db_port']}}" > or > debug: var=hostvars[group['beta'] | > intersection[groups['db'])[0]]['db_port'] > > On Fri, Oct 23, 20

[ansible-project] Getting hostvars from an intersection of groups

2015-10-23 Thread Mehul Ved
Or is there a better way to achieve what I want? -- With Regards, Mehul Ved -- 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+unsubsc

Re: [ansible-project] How to convert a dict into key-val args to be passed to a module

2015-07-11 Thread Mehul Ved
. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/be3a5ed3-cdc9-493b-90ae-5d0916b8a505%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- With Regards, Mehul Ved -- You received this message because you are subscribed

[ansible-project] Dynamic inventory for rackspace cloud besides servers

2015-07-06 Thread Mehul Ved
host during creation and write it to hosts file? -- With Regards, Mehul Ved -- 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

[ansible-project] Re: Vagrant Ansible Provisioner failing to ssh to guest machine

2014-12-15 Thread Mehul Ved
Just to close the thread and incase somebody else runs into it again. I did more testing, it was some regression in ansible 1.8.1 and symlinks http://pastebin.com/X9Z3wwB1 Upgrading to 1.8.2 has resolved the issue. -- You received this message because you are subscribed to the Google Groups

[ansible-project] Re: Vagrant Ansible Provisioner failing to ssh to guest machine

2014-12-11 Thread Mehul Ved
I was looking through the docs again and saw http://docs.ansible.com/intro_configuration.html#private-key-file so vagrant is supplying the wrong CLI parameters? Has the parameter changed at any point? On Wed, Dec 10, 2014 at 3:08 PM, Mehul Ved mehul.n@gmail.com wrote: I am working

[ansible-project] Vagrant Ansible Provisioner failing to ssh to guest machine

2014-12-10 Thread Mehul Ved
ansible_ssh_private_key_file=/home/mehul/.vagrant.d/insecure_private_key it works fine. -- With Regards, Mehul Ved -- 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

Re: [ansible-project] npm with --save-dev flag

2014-12-01 Thread Mehul Ved
and doing it multiple times doesn't make sense in most cases. -- With Regards, Mehul Ved -- 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] Request for help in creating a new user

2014-11-30 Thread Mehul Ved
On Sun, Nov 30, 2014 at 1:36 AM, xuxu xiut...@gmail.com wrote: This is what my playbook looks like: --- - hosts: ec2 user: root roles: - createuser - hosts: ec2 user: winery roles: - winery The task for createuser looks like this: --- - name: create user for given

Re: [ansible-project] Re: Ansible 1.8.1 update

2014-11-27 Thread Mehul Ved
On Thu, Nov 27, 2014 at 4:35 PM, Tomas Karasek tom.to.th...@gmail.com wrote: Hi, I don't see 1.8.1 (nor 1.8) in the ppa: https://launchpad.net/~ansible/+archive/ubuntu/ansible I got the ppa link from: http://docs.ansible.com/intro_installation.html#latest-releases-via-apt-ubuntu Probably

Re: [ansible-project] Using Ansible to check for a custom program to be installed

2014-11-27 Thread Mehul Ved
service is running. -- With Regards, Mehul Ved -- 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

Re: [ansible-project] Multiple groups with rackspace and dynamic inventory

2014-07-10 Thread Mehul Ved
On Tue, Jun 17, 2014 at 8:18 PM, Matt Martz m...@sivel.net wrote: To define secondary or extra groups to a device, you need to use the groups meta key. Note that this is plural and different from group. I really recommend using the current copy of the 'rax' module in ansible (devel), not

[ansible-project] Impact of merging hashes

2014-07-07 Thread Mehul Ved
as long the whole deployment code will be maintained by me? -- With Regards, Mehul Ved -- 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

[ansible-project] Multiple groups with rackspace and dynamic inventory

2014-06-17 Thread Mehul Ved
. Is it possible to pass a list to group parameter? Or is there another way to achieve this? -- With Regards, Mehul Ved -- 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] SyntaxError with synchronize module

2014-03-26 Thread Mehul Ved
No it didn't earlier. On Tue, Mar 25, 2014 at 8:42 PM, James Tanner tanner...@gmail.com wrote: Does the remote host have ansible_python_interpreter set in your inventory? On Mar 25, 2014, at 10:42 AM, Mehul Ved mehul.n@gmail.com wrote: On Tue, Mar 25, 2014 at 8:00 PM, Petros Moisiadis

Re: [ansible-project] SyntaxError with synchronize module

2014-03-26 Thread Mehul Ved
understand how it works internally to understand why this happens. On Tue, Mar 25, 2014 at 8:41 PM, Petros Moisiadis ernes...@yahoo.gr wrote: On 03/25/2014 04:42 PM, Mehul Ved wrote: On Tue, Mar 25, 2014 at 8:00 PM, Petros Moisiadis ernes...@yahoo.gr wrote: The syntax error you get could be caused

[ansible-project] SyntaxError with synchronize module

2014-03-25 Thread Mehul Ved
Hi, I am using ansible 1.4.4. I get SyntaxError when running synchronize plugin. Here's the playbook entry - name: create common folders synchronize: src=s dest=/etc/ssh Here's the error that I get failed: [play] = {failed: true, item: , parsed: false} invalid output was: File

Re: [ansible-project] SyntaxError with synchronize module

2014-03-25 Thread Mehul Ved
when you install using virtualenv. Everything else has been working fine so far, this was the first thing I ran into an issue with while using ansible from virtualenv. Should this be considered a bug? If so, I'll open a new ticket on github. -- With Regards, Mehul Ved -- You received

Re: [ansible-project] Variable ansible_python_interpreter ignored?

2014-03-06 Thread Mehul Ved
On Tue, Mar 4, 2014 at 3:53 PM, Marco Corte marcoc...@gmail.com wrote: Yes, it is hardcoded in the first line % head /usr/share/ansible/system/ping gives #!/usr/bin/python2 # -*- coding: utf-8 -*- # (c) 2012, Michael DeHaan michael.deh...@gmail.com # # This file is part of Ansible #

[ansible-project] SyntaxError with local_action

2014-02-28 Thread Mehul Ved
I was following rsync example from https://github.com/ansible/ansible/pull/2508 to recursively transfer files. I added following lines to my tasks 1. - name: copy generic config files for freeswitch 2. sudo: no 3. local_action: command rsync -a files/conf root@{{