Re: [ansible-project] using hosts mentioned in inventory files in my tasks

2020-02-26 Thread Srinivas Naram
try {{ inventory_hostname }} Regards Srini On Wed, Feb 26, 2020 at 4:49 PM Vishal Bobade wrote: > Hello , > > I have a inventory file with some 5-6 hosts and I want use them in some of > my tasks/main.yml file. Could some one please suggest how can I do that . > > Lets say below is my

Re: [ansible-project] "ONE" inventory question

2020-02-26 Thread Dick Visser
Hi Hard to tell without knowing what and how things are deployed, and by what people/teams. If you provide that context we can give it a try. On Wed, 26 Feb 2020 at 21:01, Xinhuan Zheng wrote: > Hello, > > We have ansible code that are in version control repository. This makes > how to

Re: [ansible-project] license issues for ansible contribution.

2020-02-26 Thread Nalin Garg
Thanks @Matt for the response. I heard about the change, I did not understand how it would have translated to my PR ( https://github.com/ansible/ansible/pull/67593 ). Should I abandon it or someone from community would make that call for the PR? On Wednesday, February 26, 2020 at 1:38:32 PM

Re: [ansible-project] license issues for ansible contribution.

2020-02-26 Thread Matt Martz
All modules shipped within Ansible must adhere to GPLv3+. However, we are basically not accepting any new modules at this time, and new modules would need to be submitted to a collection repo instead. See https://github.com/ansible-collections/overview/blob/master/README.rst for more

[ansible-project] license issues for ansible contribution.

2020-02-26 Thread Nalin Garg
I have a PR towards upstream ansible that is failing because of lib/ansible/modules/web_infrastructure/jenkins_node.py:0:0: missing-gplv3-license: GPLv3 license header not found in the first 20 lines of the module I have a licenced my code under BSD.2 . I was wondering if I can ignore the

Re: [ansible-project] Running perl script on remote host as applcation user

2020-02-26 Thread Kai Stian Olstad
On Wed, Feb 26, 2020 at 05:45:33AM -0800, DiViNe wrote: > - hosts: heres_my_hostname > tasks: > - name: Check who's master and stop DB processe > become: true > become_user: this_is_the_application_User > shell: "/path_to_script/script.pl | grep node | grep -oh MASTER" > args:

[ansible-project] Re: How to build Ansible inventory file

2020-02-26 Thread Xinhuan Zheng
Hello All, I'm still patiently waiting for someone to give me some hint on below questions. Thanks - Xinhuan Zheng On Thursday, February 13, 2020 at 4:46:35 PM UTC-5, Xinhuan Zheng wrote: > > Hello, > > I need to build Ansible inventory files, but somehow got stuck. Typically > for a service,

[ansible-project] Netscaler Ansible question

2020-02-26 Thread Xinhuan Zheng
Hello, In my Netscaler Ansible module, I encountered a problem with netscaler_lb_vserver. I'm trying to use a list of servicebindings to create a single lb vserver with two services, but instead it only creates "test2-service" for that lb vserver, "test1-service" isn't there. Is there a way

[ansible-project] "ONE" inventory question

2020-02-26 Thread Xinhuan Zheng
Hello, We have ansible code that are in version control repository. This makes how to maintaining "ONE" inventory file difficult. If we need to create multiple repositories, for different purpose of Ansible playbook running, it breaks "ONE" inventory file assumption. In practice, does everyone

Re: [ansible-project] Re: Win_ping Module | failed to run exec_wrapper | URGENT

2020-02-26 Thread Jordan Borean
I completely spaces that you are running against Server 2008 R2. There's a bug with PowerShell v3 and remoting around out of memory issues which commonly appears like stuff you are seeing here. Make sure you have met the pre-reqs and either - Update PowerShell to v5 preferably - Install

Re: [ansible-project] Running perl script on remote host as applcation user

2020-02-26 Thread Dick Visser
Could you please state clearly: - Which command did you run, and what actual output did you get from that (copied as plain text - not as images, attachments, or screenshots). - What the relevant tasks/playbooks/code/variables look like. On Wed, 26 Feb 2020 at 14:45, DiViNe wrote: > > I need to

Re: [ansible-project] How can i pass hosts information dynamically from UI and invoke an ansible playbook .

2020-02-26 Thread Dick Visser
If this is about Ansible tower then please contact RedHat for support. On Wed, 26 Feb 2020 at 14:18, anilkumar panditi wrote: > > Hi, > I am trying to pass hosts information dynamically from UI and invoke an > ansible playbook which will configure the things on the dynamically passed > hosts

[ansible-project] Running perl script on remote host as applcation user

2020-02-26 Thread DiViNe
I need to know if the server is a "master server". I have to run a perl script (as a none root user) in order to find out if the server is a Master server or a Secondary server. The perl script has a lot a output, therfore I grep this after executing the perl script: | grep node | grep -oh

[ansible-project] How can i pass hosts information dynamically from UI and invoke an ansible playbook .

2020-02-26 Thread anilkumar panditi
Hi, I am trying to pass hosts information dynamically from UI and invoke an ansible playbook which will configure the things on the dynamically passed hosts from UI. Could you please help. -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Re: Win_ping Module | failed to run exec_wrapper | URGENT

2020-02-26 Thread Piyush Bansal
Hello, I allowed unencrypted on winrm client and winrm service with unrestricted execution-policy. Below is the detailed traceback for win_ping: TASK [win_ping]

Re: [ansible-project] Re: Win_ping Module | failed to run exec_wrapper | URGENT

2020-02-26 Thread Piyush Bansal
Hello Jordan and Hawkesworth, Many Thanks for your email..!! I disabled all services of Anti-Virus software on the server and tried win_ping but still the same issue. Tried with unrestricted, remotesigned and bypass execution policy but still win_ping does not work. Local user account which I

[ansible-project] using hosts mentioned in inventory files in my tasks

2020-02-26 Thread Vishal Bobade
Hello , I have a inventory file with some 5-6 hosts and I want use them in some of my tasks/main.yml file. Could some one please suggest how can I do that . Lets say below is my inventory file

Re: [ansible-project] Re: remote_src and template_host for template module not working for me

2020-02-26 Thread Janmejaya Swain
Hi Racke , Actually Controller/Tower not in our controll , different team handling , only we have controll on remote machine and playbook . Even i can't access tower also . Can u pls help me to know how we pass host variable from one play to other ? i need to pass hostname from one play to

Re: [ansible-project] Re: Checkpoint Interface details

2020-02-26 Thread Stefan Hornburg (Racke)
On 2/26/20 10:48 AM, rajthecomputerguy wrote: > Hi Team, > > Any help would be appreciated ? This question refers to a (very) specfic topic and is not related to Ansible. Please specify how you would produce theses reports without Ansible. Regards Racke > > Thanks > > On Wednesday,

[ansible-project] Re: Checkpoint Interface details

2020-02-26 Thread rajthecomputerguy
Hi Team, Any help would be appreciated ? Thanks On Wednesday, February 19, 2020 at 7:18:55 PM UTC+5:30, rajthecomputerguy wrote: > > Hi , > > Has anybody generated interface report for checkpoint firewalls using > Ansible? > > Thanks > -- You received this message because you are subscribed

[ansible-project] How can I pass predefined variable to playbook's “- hosts: ”POD_'+VARIABLE+'_master_sn“”

2020-02-26 Thread Anton Tsurkanu
I need to read VARIABLE from some pre-defined file, not from the console. I have a file named "all" under group_vars with predefined variable, the value of which can be changed, let say, from "C" to "D' depends on what I need: VARIABLE: C Also, I have a task under my playbook: - hosts:

Re: [ansible-project] set_fact undefined variable issue when concat string to itself.

2020-02-26 Thread Shifa Shaikh
It helped. Thank you @Abhijeet On Wednesday, February 26, 2020 at 12:09:19 PM UTC+5:30, Abhijeet Kasurde wrote: > > You can try this - > > - set_fact: > excludefolders: "{{ excludefolders | default('') + ' -o -name ' + > item | default('') }}" > with_items: "{{ lookup('vars',

Re: [ansible-project] Re: remote_src and template_host for template module not working for me

2020-02-26 Thread Vladimir Botka
On Tue, 25 Feb 2020 23:24:14 -0800 (PST) Janmejaya Swain wrote: > 2. In fetch module . fetch the files with including host name in path . > How we can avoid this hostname in path ? > > - name: fetch tar file from remote to local machine > fetch: > src: /tmp/tts_config.tar >

Re: [ansible-project] Re: remote_src and template_host for template module not working for me

2020-02-26 Thread Stefan Hornburg (Racke)
On 2/26/20 8:24 AM, Janmejaya Swain wrote: > Hi ,  > > 1. I have multiple json as well as j2 files , Need to generate multiple > config files by using template module.  > 2.  In fetch module . fetch the files with including host name in path . How > we can avoid this hostname in path ? >