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
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
>
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:
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
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
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
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
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
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
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
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
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:
>
> -
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
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
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
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
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
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.
>
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
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
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
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
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
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
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:
"{{
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_
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
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
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
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
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
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
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
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
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
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
>
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
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
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'
> -
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
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
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
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
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
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
45 matches
Mail list logo