[ansible-project] Unable to create alb with Ansible

2018-09-18 Thread Subrat Mahapatra
Hi There, I am able to get the list of subnets for a VPC ID or tag name with the help of set_fact. While using the subnets (Subnet Output of set_fact) to create an ALB I am getting error as "load balancer cannot be attached to multiple subnets in the same availability zone" Here is the

Re: [ansible-project] Connection plugin with user configuration coming from a variable

2018-09-18 Thread Peter Horvath
Based on my understanding, options are done at the Ansible level, e.g. parameters for the default ssh transport are configured in the Playbook context [1], so I do not think I could just add further configuration options (say "foobar") for my own transport, because apparently those things come

Re: [ansible-project] Ansible Jinja Template Comparison

2018-09-18 Thread Jonathon Woods
I’m not sure how to make it work how you have laid out. But I would do the check in the jinja template anyway. Get your current ntp lines. In the jinja template run. {% for ntp_server in ntp_config_get %} {% if ntp_line not in ntp_servers %} no ntp server {{ ntp_server }} {% ending %} {% for

Re: [ansible-project] Trying Oracle database download to windows server 2012

2018-09-18 Thread Isha G
Can you please paste the task that you used? On Tue, Sep 18, 2018 at 2:07 AM Jordan Borean wrote: > You can store the download on your own web server and use win_get_url from > there. The trouble isn't that Ansible is failing but that Oracle is hiding > the actual download behind a license

[ansible-project] Help need with regards to Netscaler playbook

2018-09-18 Thread Balaji
Hello All, Do anyone know how to disable just a service group on netscaler using playbook. Thanks, -- 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] Re: Not able to connect windows server due to the Error "module_stderr": "An error occurred while creating the pipeline.\r\n"," while trying with win_ping

2018-09-18 Thread Usha Rani
Hi Jordan, Executed with -v..please check the below output: $ ansible win_prod -i /tmp/winhosts.yml -m win_ping -k -v [WARNING] Ansible is in a world writable directory (/tmp), ignoring it as an ansible.cfg source. ansible 2.6.1 config file = /etc/ansible/ansible.cfg configured

Re: [ansible-project] Ansible Jinja Template Comparison

2018-09-18 Thread Krishna N
Hi Jason, Thanks for replying. That's definitely another way of doing it. However, this is what I am trying. 1. Get the ntp server config from "sh run". 2. Store that to a list 3. Jinja template generates the required config. I am passing the ntp_server IPs via -e (extra variables). 4. Add the

Re: [ansible-project] for getting the prompts in between of 2 tasks in a single playbook.

2018-09-18 Thread Brian Coca
The pause module allows you to do this. https://docs.ansible.com/ansible/latest/modules/pause_module.html -- -- 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

[ansible-project] VNC server not running correctly with Ansible

2018-09-18 Thread swinickitom
When I start a VNC server instance with an Ansible script, the instance of the vncserver just a blank (all black) screen. It shouldn't be an issue with vnc server as I can ssh into the server and start a vnc session myself and it works fine. Any suggestions? -- You received this message

[ansible-project] Error with jinja2 templating for a conditional

2018-09-18 Thread Chris
Hello, Will someone please help me understand why this is not work? Thanks! --- - hosts: all become: yes become_method: sudo become_user: root vars: stat_files: - name: stat_var stat_path: "/etc/resolv.conf" tasks: - name: "Verify file copy destination"

Re: [ansible-project] Error with jinja2 templating for a conditional

2018-09-18 Thread Matt Martz
You cannot use a variable as the name of the var to be registered. It must be an explicit static string. See the following info on the structure of registered data when using a loop: https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#using-register-with-a-loop On Tue, Sep

Re: [ansible-project] Connection plugin with user configuration coming from a variable

2018-09-18 Thread Brian Coca
I'm not sure if i'm understanding correctly, in any case, any plugin can use the built in configuration, it does not only apply to shipped Ansible plugins. https://docs.ansible.com/ansible/devel/dev_guide/developing_plugins.html#plugin-configuration-documentation-standards Currently, connection

[ansible-project] s3_ modules for DELL EMC ECS

2018-09-18 Thread Martyn Kempster
Is it possible to use any of the s3_ and ecs_ modules for EMC ECS? ECS uses the standard s3 API and has the same parameters such as AWS Secret Keys and Access Keys. I've tried using the s3_bucket module but I get 'Couldn't connect to AWS: Invalid endpoint:' when trying to point to my ECS

Re: [ansible-project] s3_ modules for DELL EMC ECS

2018-09-18 Thread Allen Sanabria
Have you tried passing the *s3_url*: On Tue, Sep 18, 2018 at 9:51 AM, Martyn Kempster wrote: > Is it possible to use any of the s3_ and ecs_ modules for EMC ECS? ECS > uses the standard s3 API and has the same parameters such as AWS Secret > Keys and Access Keys. > > I've tried using the

Re: [ansible-project] edit aix stanza files

2018-09-18 Thread christian . tremel
hmm...tried out lineinfile, replace and template but was not successfull? any other creative ideas? i looked at the ini_file module source, and it seems this is very similar to the aix stanza format. unfortunately i am at war with regex, and this particular code is full of it. On Wednesday,

Re: [ansible-project] run_once + delegate_to: localhost + conditional

2018-09-18 Thread Brian Coca
The issue is that you are making the test on the 'current' host, but that is not mandated, you can use the data from any/all the hosts and use a 'select' filter to create a list of hosts that pass that test .. so if select(,,,)|length > 1 you have an 'any' host matching condition. --