[ansible-project] Ping Role for clients to ping all IP from HOST_VAR files?

2020-08-25 Thread 'Fatos Dervisi' via Ansible Project
Dear Community, I want to write a simple Ping Role, which takes IP Addresses from all YAML files in HOST_VARS and connected to Linux devices and ping all the collected IP Example: HOST_VARS: -server1.yml (contains an IP = 1.1.1.1 -server2.yml (contains an IP = 2.2.2. The role should connect

[ansible-project] Ansible playbook to get ServiceNow MID servers service and restart if needed

2020-08-25 Thread eh
Hello, I'm trying to get several mid server services which contain on the path of the service servicenow_load or ServiceNow_Prod to check if are running and if not restart the service using ansible playbook. Tasks in playbook: tasks: - name: Check if needed MID Servers are installed

[ansible-project] Re: Ansible running in Docker Container"Connection refused Failed to connect to new control master"

2020-08-25 Thread Jesus David Posada Escobar
At the same level where the host inventory is, create a file named ansible.cfg with the following: [ssh_connection] ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s control_path = /dev/shm/cp%%h-%%p-%%r That will solve your problem El sábado, 6 de julio de 2019 a la(s) 13:30:45 UTC-5,

Re: [ansible-project] URI module keeps erroring

2020-08-25 Thread Kundan Singh
Hi Jeff There is indentation error which will be validated by yaml but when you execute it >From controller or AT it will give error Please use below syntax - name: hosts: Regards Kundan singh On Tue, Aug 25, 2020, 9:09 PM Ingrum Jefferson wrote: > Hi Group, > > I have been stuck for a

Re: [ansible-project] URI module keeps erroring

2020-08-25 Thread Stefan Hornburg (Racke)
On 8/25/20 5:39 PM, Ingrum Jefferson wrote: > Hi Group, > > I have been stuck for a few days on this issue; I am not sure whether it is a > defect or not. > Hello Ingrum, Your playbook isn't correctly formatted, is should look like - hosts: all tasks: - name: display ip ranges

[ansible-project] URI module keeps erroring

2020-08-25 Thread Ingrum Jefferson
Hi Group, I have been stuck for a few days on this issue; I am not sure whether it is a defect or not. I am running Ansible version 2,9.6. I am able to run any playbook using the ssh and Linux module. However when I attempt to make a simple connection to a website using the URI module, it

Re: [ansible-project] Cisco Switch Discovery in Ansible Tower

2020-08-25 Thread Avinash Jadhav
Hi firstly you need to create an inventory which you want to install and in inventory need to mention DNS/IP/target name - any second, write a playbook with a task which you need to install on the target system On Tue, 25 Aug 2020 at 17:46, shilpa Benakatti wrote: > Hi.. > Thanks for the

Re: [ansible-project] Cisco Switch Discovery in Ansible Tower

2020-08-25 Thread shilpa Benakatti
Hi.. Thanks for the links. Should I run the script in inventory script? On Tue, 25 Aug, 2020, 3:26 PM Avinash Jadhav, wrote: > Hello > Could you please follow this linked instruction > https://www.ansible.com/integrations/networks/cisco > https://developer.cisco.com/automation-ansible/ > > On

Re: [ansible-project] hostvars[inventory_hostname][ansible_facts] when host unreachable?

2020-08-25 Thread Stefan Hornburg (Racke)
On 8/24/20 3:23 PM, Trammael wrote: > I've been trying to loop on a fact for all hosts ('distribution') and > encountered an error to the effect of 'dict is > undefined' .  It took  a while to realize that 'ansible_facts:' exists but is > unpopulated on unreachable hosts. > > What would be the

[ansible-project] cygwin and VMprotect in Silent mode on a windows machine-Playbook

2020-08-25 Thread surabhy vaishakh
Hello, Can anyone help me to get a playbook to install cygwin and VMprotect in Silent mode on a windows machine. Ansible Master - Linux Ansible-Node- Windows Package: cygwin VM protect Thanks, Surabhy -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] Cisco Switch Discovery in Ansible Tower

2020-08-25 Thread Avinash Jadhav
Hello Could you please follow this linked instruction https://www.ansible.com/integrations/networks/cisco https://developer.cisco.com/automation-ansible/ On Tue, 25 Aug 2020 at 13:43, L wrote: > Dear all, > > I am very new to Ansible Tower. > I have few devices in my network like Cisco Router,

[ansible-project] Cisco Switch Discovery in Ansible Tower

2020-08-25 Thread L
Dear all, I am very new to Ansible Tower. I have few devices in my network like Cisco Router, Cisco Switch, VMware . I want add the Cisco Switch in this CM software, Can any one guide how to start this. -- You received this message because you are subscribed to the Google Groups "Ansible