Re: [ansible-project] Run exe file with spaces in the filename using Win Command

2021-08-20 Thread vinoth kumar
Hi, You can try escaping or store the file names in register and pass register through loop to run your executable files. //Vinoth On Fri 20. Aug 2021 at 17:30, david.burt...@bmt.ky wrote: > I'm trying to run an exe with a space in the filename using the Win > Command module. > > For example 'f

Re: [ansible-project] managing software via ansible

2021-08-14 Thread vinoth kumar
Check the spelling for permanent. https://docs.ansible.com/ansible/latest/collections/ansible/posix/firewalld_module.html //Vinoth On Sat 14. Aug 2021 at 19:51, Sakshi Jain wrote: > Please help to resolve this error >

Re: [ansible-project] jinja 2 template

2021-07-31 Thread vinoth kumar
It clearly says that you have to be as a root user . Check you have root access on target machine and Add become:yes on your playbook. And run with ansible-playbook lab27.yaml -k -k If you are using Limey based Authentication. It’s not required . On Sat 31. Jul 2021 at 20:40, Sakshi Jain wrote:

Re: [ansible-project] Loop to Print same name multiple times

2021-05-30 Thread vinoth kumar
Hi There is sequence and count loops . Look at here https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#with-sequence //Vinoth On Sun 30. May 2021 at 18:52, R.B. Kumar wrote: > Hello Everyone - I am aware we can use *with_items *and *loop *methods to > create a iterative lo

Re: [ansible-project] postgresql_query postgresql Module help

2021-05-22 Thread vinoth kumar
Hi, I haven’t followed all the code . But not sure why do you need double quotes in join * joined_ts_list: |- {{ user_def_tablespace | join(',') | string}}* On Fri 21. May 2021 at 15:25, Pourab Bhattacharyya wrote: > > Hi, > > I'm trying to database query by ansible postgresql_query mod

Re: [ansible-project] On ansible2 I have packages:

2021-05-22 Thread vinoth kumar
Hi Check whether are you able to take ssh connection to the ansible1 server . What is your whole facts looks like for the ansible1 server //vinoth On Thu 20. May 2021 at 16:25, Marcel de Vries < marcel.marceldevr...@gmail.com> wrote: > [ansible@control ~]$ ansible ansible2 -m setup|grep package

Re: [ansible-project] Ansible and Arista

2021-02-08 Thread vinoth kumar
Hi Stefan I haven’t used this module but when I check in document it says it should be the exact command you use in target device . Are you using the correct one . The ordered set of commands that should be configured in the section. The commands must be the exact same commands as found in the de

Re: [ansible-project] Printing items in a file using lineinfile/blockinfile

2021-02-08 Thread vinoth kumar
You shoul provide the output of testing . Is it variable or register . Give us some more info //v On Mon 8. Feb 2021 at 15:53, Akshay Kumar wrote: > Hi All, > > I am currently working on a playbook where in i need to write the output > of SQL statement into a file . > I have 4 SQL statement and

Re: [ansible-project] Ansible Synchronization Problem

2021-02-08 Thread vinoth kumar
Error says no file . Which means target file is not available and it’s checking in wrong host as you don’t want . Also when you delegate to some host that to be source and copy from there to your play host you have to use some thing like this . In your output it searches on your play host server

Re: [ansible-project] what does this mean?

2020-10-25 Thread vinoth kumar
You need to have a proper pip package on local machine / target machine to run your modules (not for all module if you check in module documentation full fill prerequisites) Here you need to do pip install requests //vinoth On Sun 25. Oct 2020 at 15:15, Tony Wong wrote: > > Keep getting this er

Re: [ansible-project] Re: need a playbook to change esxi root pass

2020-10-25 Thread vinoth kumar
You need to have pip module to run in target hosts. You might have installed pip package on local host . You can simply run this on localhost . It will work . Make exsi hosts on loop //Vinoth On Sun 25. Oct 2020 at 02:08, Tony Wong wrote: > > > my playbook > > --- > - name: "change the root pas

Re: [ansible-project] ERROR! the field 'hosts' is required but was not set

2020-10-13 Thread vinoth kumar
Are you using ansible tower/awx or in command line? How your inventory file looks like? //vinoth On Mon 12. Oct 2020 at 21:45, Subhash Chandra Ranga wrote: > --- > - name: install nginx with the my own php format > hosts: webservers > remote_user: ubuntu > become: yes > > tasks: > > -

Re: [ansible-project] Re: Getting module failure while creation file on AT

2020-10-01 Thread vinoth kumar
Make sure you have correct permission. Most case you will not have root access in tower server . Use become:false in task level to create the file as it’s delegate to localhost. //Vinoth On Thu 24. Sep 2020 at 15:05, Kundan Singh wrote: > Task synatx > > - name: create some file > file: path=/t

Re: [ansible-project] I am getting below error while invoking ansible playbook from Jenkins

2020-08-02 Thread vinoth kumar
It’s error 111 connection refused . Check port 22 from controller to target servers . On Sun 2. Aug 2020 at 12:37, lakshminarayanan R wrote: > An exception occurred during task execution. To see the full traceback, use > -vvv. The error was: botocore.exceptions.EndpointConnectionError: Could

Re: [ansible-project] ansible - rhel8

2020-07-15 Thread vinoth kumar
Where is your actual tasks starts ? Tasks is missing On Wed 15. Jul 2020 at 20:17, 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: > Hey all, > > having an interesting issue with my latest rhel8 installation. > > Trying to install an rpm from a URL. Here's my playbook: > > --- > - na

Re: [ansible-project] Need help in polling the ansible task

2020-07-09 Thread vinoth kumar
You can register it and use retries until it gets something you want . The. You can call you second playbook with your when condition . You have to provide the exact output to get condition . Until: register.somthing.isFetched == true On Thu 9. Jul 2020 at 11:26, Rahul Kumar wrote: > Hi Gee

Re: [ansible-project] Response' object has no attribute '__getitem__ while running the lookup plugin 'hashi_vault'

2020-05-20 Thread vinoth kumar
Have you installed pip hashi vault module . I think you have to install the pip module for this connection. Check in hashi vault module page in official ansible document . In first few line you can see the requirements. Fix that it will work . On Wed 20. May 2020 at 12:02, Asmitha j.s wrote: > I

Re: [ansible-project] Append data to json file using ansible modules

2020-04-10 Thread vinoth kumar
You have a parameter insert before or insert after where you can regex and update your code. Let us know if it works. Or put your code and error to get it to work On Fri 10. Apr 2020 at 21:02, syam rhel wrote: > Hi All, > > Is it possible to update the data of json file using ansible modules. >

Re: [ansible-project] pre-tasks doesn't execute before roles...

2020-03-22 Thread vinoth kumar
What is your ansible.cfg looks . Actually it’s stores on your home directory/.ansible. Do a change on cfg that points to roles_path to this directory as well. This wil help you if you get roles doesn’t exist. Are you running in ansible engine or from ansible tower ? On Fri 20. Mar 2020 at 18:59, J

Re: [ansible-project] How to get Job count in Tower

2020-03-18 Thread vinoth kumar
If you are using ansible tower. It will be mentioned over there in dashboard On Wed 18. Mar 2020 at 22:56, Sindhuja Koneru wrote: > Hello, > > I am trying to find total number of jobs that are run in week/month from > Ansible tower. > How can it be achieved , can it be done through a REST API ca

[ansible-project] tower_wait_job module is not working

2020-01-17 Thread vinoth kumar
Hi Folks, I got an issue with tower_job_wait module in anisble tower. i use to launch an other template and wait for it to complete. template has been triggered and executed successfully but once after that wait job gets failed with below output. [vinoth@ansible ansible]$ tower-cli --version T

Re: [ansible-project] Loop with hostvars groups

2019-08-27 Thread vinoth kumar
Hi remove hostvars[host].ansible_hostname and try with hostvars[host].ansible_facts.hostname if you are doing it from setup module or gayher_facts If it’s not fixed put your playbook here On Tue, 27 Aug 2019 at 5:36 PM, Rafael Tomelin wrote: > > Hi, > > I have an inventory with groups this conf

Re: [ansible-project] Get host name of the servers where the task failed

2019-08-21 Thread vinoth kumar
If you are running in ansible engine it will automatically create a file as yourplayboonname.retry in same folder On Wed, 21 Aug 2019 at 7:47 PM, Pandu jh wrote: > I have a task in my playbook where it runs against multiple servers. > I need to get the hostname of all servers where my task faile

Re: [ansible-project] Re: "PUTTING" or http PUT interacting with JFrog Artifactory

2019-08-18 Thread vinoth kumar
Hi Use status code with respective error and try again On Fri, 16 Aug 2019 at 10:20 PM, GM wrote: > Oh - yes. > > Here is the scenario: > > I have a JFrog Artifactory server, and I want to use Ansible to > upoload/PUT files into the repos that I have in Artifactory. - attempting > to use the uri

[ansible-project] Json output

2019-08-15 Thread vinoth kumar
Hi Folks, I need your help here, how can i get all hostnames (marked) to print. when i try msg: "{{results.json.actions[0].system.hostname}}" and msg: "{{results.json.actions[1].system.hostname}}" it prints me the two hosts, but i need all hosts availble in single msg -- tried this --msg: "{{

Re: [ansible-project] How to use piping multiple shell commands

2019-07-31 Thread vinoth kumar
On Thu, 1 Aug 2019 at 8:57 AM, vinoth kumar wrote: > Error clearly says to use proper quotes > This would be fine i think so > “netstat -nautp |grep -iE ‘137|389|445|636’|awk '{print $5}' |cut -d: -f2 > |grep -iwE ‘137|389|445|636’” > Save it in Regiter > Use set_

Re: [ansible-project] How to use piping multiple shell commands

2019-07-31 Thread vinoth kumar
Error clearly says to use proper quotes ‘netstat -nautp |grep -iE "137|389|445|636" |awk '{print $5}' |cut -d: -f2 |grep -iwE "137|389|445|636"’ Save it in Regiter Use set_facts to store as a variable On Thu, 1 Aug 2019 at 8:31 AM, Veera wrote: > Hi, > > I am trying the below snippet to det

Re: [ansible-project] Choose inventory hosts.ini file based on condition

2019-05-30 Thread vinoth kumar
Are you using right format? I can see Prod in inventory but in variable you used prod . Check the spelling On Tue, 28 May 2019 at 9:02 PM, Saranya N wrote: > I have different staging environments under inventory. > > Inventory/ > Qa/ >Group_vars >hosts.ini > Uat/ >group_vars >h

Re: [ansible-project] Using Ansible copy module for remote to remote file transfer (same remote host)

2019-05-30 Thread vinoth kumar
Why don’t you use rsync module which will work good in directory and remote hosts. I think cp module will not work recursively. On Thu, 30 May 2019 at 5:15 PM, Naufil Qureshi wrote: > I'm trying to move all files under a specific remote directory to another > remote directory - on the same remot

Re: [ansible-project] How do command scp -rp in Ansible ?

2019-05-30 Thread vinoth kumar
On Wed, 22 May 2019 at 6:14 PM, Ryad karkar wrote: > Ok, > > When i try to use this module i have on error: > > - name: "my synchronize module" > synhcronize: > src: /home/michel/*.txt > dest: //home/carla/ > Here you have to use /home/Carla also this will sync on your local > machin

Re: [ansible-project] Multiple hosts in playbook

2019-05-15 Thread vinoth kumar
Sorry for the late question. How can I make a condition that play 2 should run when play 1 is succeed On Thu, 26 Jul 2018 at 7:26 PM, Brian Coca wrote: > Playbooks contain plays, each play can target a different set of hosts, so > just: > > - hosts: primary > tasks: > . > > - hosts: se

Re: [ansible-project] help me - error: Filespec must match the canonical format: [[namespace/]pod:]file/path

2019-04-09 Thread vinoth kumar
On Tue, 9 Apr 2019 at 8:12 AM, Balaji wrote: > > Hello All, > > Need your help on below issue. > > I am trying to run kubernetes command on a remote host using ansible. > > This command works when directly run on a remote host. > > ==> kubectl cp /etc/passwd > bus-service/ssh-jumphost-6954f

Re: [ansible-project] win_copy azure ansible module not working

2019-04-09 Thread vinoth kumar
Hi , Error says in dest. Can you try to put in any other destination with absolute path ? On Tue, 9 Apr 2019 at 3:49 PM, gottumukkala srija wrote: > Hi Team, > > We are trying to automate the installation of tools in azure using > ansible. VM spin up is successful and we are trying to invoke the

Re: [ansible-project] Openshift cluster management

2019-03-17 Thread vinoth kumar
My > understanding is ansible tower is just executing the ansible playbooks. > > On Saturday, March 16, 2019 at 12:25:05 PM UTC-5, vinoth kumar wrote: >> >> You could manage it via ansible tower . We are using it in our >> environment >> You can explain bit more to understand

Re: [ansible-project] Openshift cluster management

2019-03-16 Thread vinoth kumar
You could manage it via ansible tower . We are using it in our environment You can explain bit more to understand your need On Sat, 16 Mar 2019 at 10:52 PM, Rony Joy wrote: > My ansible knowledge is very limited. I would like to get some expert > suggestions from the experts here. Our environmen

Re: [ansible-project] ssh to remote node and run CLI

2018-11-18 Thread vinoth kumar
Hi Abdul, You could remove the hosts from inventory.ym , else directly mention it in default hosts inventory file Br Vinoth On Wed, 14 Nov 2018 at 8:26 AM, Abdul Rahim wrote: > Thans Brian , > > It fails with following > > root@ansibile-launch:~/ansible/tasks/add-compute# ansible-playbook -i >

Re: [ansible-project] Disk informatoin in target machine

2018-09-30 Thread vinoth kumar
Forget to mention it. It gives me an error On Sun, 30 Sep 2018 at 10:58 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On Sunday, 30 September 2018 18.46.58 CEST vinod93...@gmail.com wrote: > > HI kai,, > > > > Thanks for your information, > > > > sorry to ask this again, Here g

Re: [ansible-project] getent group

2018-08-30 Thread vinoth kumar
Thanks Kai this is what I am looking for .. On Thu, 30 Aug 2018 at 9:13 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On Thursday, 30 August 2018 17.24.24 CEST vinod93...@gmail.com wrote: > > I have to check the group via getent if the group is not present I have > to > > crea

Re: [ansible-project] unable to send register value on remote server.

2018-08-25 Thread vinoth kumar
On Sun, 26 Aug 2018 at 2:39 AM, Deepak Sharma wrote: > --- > - hosts: all > gather_facts: true > sudo: true > tasks: > > - name: capture linux_os > shell: "{{ item }}" > register: prepatch > with_items: > - 'uname -a' > - 'cat /etc/resolv.conf' > -

Re: [ansible-project] ansible-pull: what does `fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “one of the following is required: name, list”}` mean?

2018-08-23 Thread vinoth kumar
HI Ron, why don't you use name=* update_cache=yes in pre task, also I think you forget to add a state in tasks/packages.yml where there is no action in play. On Wed, Aug 22, 2018 at 7:06 PM Ron Barak wrote: > *What does the following message mean?* > > > fatal: [localhost]: FAILED! => {"changed

Re: [ansible-project] Re: Jenkins - Ansible integration

2018-08-19 Thread vinoth kumar
Hi vamsi, Play book error says there is no create_user.yml file is present in running directory . Check you are running from right directory . On Mon, 20 Aug 2018 at 10:59 AM, Vamsi Krishna wrote: > HI Malcolm, > > Below is the error I am facing. I have placed script in /home/ansible. I > believ

Re: [ansible-project] Install R packages via Ansible

2018-08-02 Thread vinoth kumar
Create a play book With yum module to install it. See ansible yum dicumentation for more info On Fri, 3 Aug 2018 at 10:40 AM, Saurabh wrote: > Hi All, > > How to install R packages through Ansible ? > > I want to install quantmod and ggplot packages. > > Any Suggestion ? > > > > -- > You receiv

Re: [ansible-project] Find and Fetch

2018-08-02 Thread vinoth kumar
Can you try like this in your pattern “*.tar*” On Wed, 1 Aug 2018 at 6:31 PM, onenessboy wrote: > Hi > > I am using below code to find and fetch files from remote server to local, > how ever its not erroring, but not fetch anything > > - find: > paths="/home/cloud-user" > patte

Re: [ansible-project] Scalability and Limitations of oracle patching with Ansible

2018-08-02 Thread vinoth kumar
Yes you can , if you are running via ansible engine (command line) u don’t need anything, license is required when you do via ansible tower On Fri, 3 Aug 2018 at 3:11 AM, hitesh shaha wrote: > Hi All, > > I am working on one of the automation project to apply oracle patch using > Ansible. > I wo

Re: [ansible-project] Re: host issue

2018-08-02 Thread vinoth kumar
Thanks for your reply. But here we have 1000 servers where I need to run like my command should try to execute in domain A , if domain is not reachable the it should automatically trigger to domain B On Fri, 3 Aug 2018 at 5:09 AM, Ramu wrote: > Vinod, > You can rely on the serial param. > > - na