Re: [ansible-project] Based on vendor have to execute playbook

2021-06-16 Thread Vladimir Botka
On Thu, 17 Jun 2021 05:58:54 +0530 NAVEEN wrote: > Hello Team , > > I am having 3 vendors Ex :HP ,DELL ,Lenovo > i have 3 separate playbooks > Now i want to execute those based on vendor .If it is HP it should call > Hp Playbook Likewise..Can some one please help. It's not possible to

Re: [ansible-project] Based on vendor have to execute playbook

2021-06-16 Thread Thanh Nguyen Duc
You can see the vendor when gather facts and set condition when vendor = hp Sent from my iPhone > On 17 Jun 2021, at 08:32, Wei-Yen Tan wrote: > >  > Use conditionals as in when > > Get Outlook for iOS > From: ansible-project@googlegroups.com on > behalf of NAVEEN > Sent: Thursday, June

Re: [ansible-project] Ping Host from Ansible Server

2021-06-16 Thread Thanh Nguyen Duc
For windows and linux, i have created a playbook to run everyday at 1am to check whether the host is reachable or not and data will be written to jinja template with html format for the final report. Sent from my iPhone > On 16 Jun 2021, at 23:53, Brian Coca wrote: > > for network

Re: [ansible-project] Based on vendor have to execute playbook

2021-06-16 Thread Wei-Yen Tan
Use conditionals as in when Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of NAVEEN Sent: Thursday, June 17, 2021 12:28:54 PM To: ansible-project@googlegroups.com Subject: [ansible-project] Based on vendor have to

[ansible-project] Based on vendor have to execute playbook

2021-06-16 Thread NAVEEN
Hello Team , I am having 3 vendors Ex :HP ,DELL ,Lenovo i have 3 separate playbooks Now i want to execute those based on vendor .If it is HP it should call Hp Playbook Likewise..Can some one please help. -- *Regards* *Naveen * -- You received this message because you are subscribed to the

Re: [ansible-project] Re: Getting Error while running playbook "msg": "[Errno None] Unable to connect to port 22

2021-06-16 Thread subrat mangaraj
Hi Phil, Same i did but getting ssh banner error. Ansible.cfg config [defaults]: inventory = /etc/ansible/hosts ansible_python_interpreter=/usr/bin/python3 host_key_checking = no look_for_keys = False .ssh config sh-3.2# cat /Users/veda/.ssh/config Host tot Hostname x.x.x.x User veda1

Re: [ansible-project] Re: Getting Error while running playbook "msg": "[Errno None] Unable to connect to port 22

2021-06-16 Thread phil.gr...@gmail.com
https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to On Wednesday, 16 June 2021 at 14:31:48 UTC+1 subrat@gmail.com wrote: > Hello Experts, > > Can someone reply. > > On Tue, Jun 15, 2021 at 7:54

[ansible-project] Re: Nested Collection

2021-06-16 Thread Dhiwakar Ravikumar
I figured out a solution, please ignore this. ! On Monday, June 14, 2021 at 8:27:59 PM UTC-4 Dhiwakar Ravikumar wrote: > Hi > > Can someone please comment on whether or or it is possible, whether or not > it is recommended to nest collections inside of other collections ? > > I would like to

Re: [ansible-project] Multiple choice question? Ansible

2021-06-16 Thread Dick Visser
Does this come from https://vceguide.com/which-of-the-following-are-valid-parameters-of-the-template-module/ ? On Wed, 16 Jun 2021 at 15:30, Krishna Gupta wrote: > > Which of the following are valid parameters of the template module? (Choose > all that apply) > > a: state > b: dest > c:

Re: [ansible-project] Ping Host from Ansible Server

2021-06-16 Thread Brian Coca
for network appliances use https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/net_ping_module.html instead -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] Ping Host from Ansible Server

2021-06-16 Thread Dick Visser
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/ping_module.html On Wed, 16 Jun 2021 at 17:36, R.B. Kumar wrote: > Thank you for sharing and letting me know about this. > > But for learning purpose i am trying to write a Ansible script, how to > achieve this requirement in

Re: [ansible-project] Ping Host from Ansible Server

2021-06-16 Thread R.B. Kumar
Thank you for sharing and letting me know about this. But for learning purpose i am trying to write a Ansible script, how to achieve this requirement in Ansbile script All my hosts are Cisco Routers and Switchees On Wednesday, June 16, 2021 at 8:57:10 PM UTC+5:30 Antony Stone wrote: > On

Re: [ansible-project] Ping Host from Ansible Server

2021-06-16 Thread Antony Stone
On Wednesday 16 June 2021 at 17:21:33, R.B. Kumar wrote: > Hello All - I am trying to do a ping test of all the hosts in > /etc/ansible/hosts, from the Ansible server. > > So the requirement is, the ansible server should do a ping test to all the > host and return the output. I would say

[ansible-project] Ping Host from Ansible Server

2021-06-16 Thread R.B. Kumar
Hello All - I am trying to do a ping test of all the hosts in /etc/ansible/hosts, from the Ansible server. So the requirement is, the ansible server should do a ping test to all the host and return the output. regards,Kumar -- You received this message because you are subscribed to the

[ansible-project] Failed to import the required Python library

2021-06-16 Thread Anjali Adhikari
Hi , Can anyone help me to install pysnow module frm ansible play in Ansible tower. I am getting error . Failed to import the required Python library (pysnow) on ansible-tower-6f8dccc96f-ppvr2's Python /usr/bin/python2. Please read module documentation and install in the appropriate

[ansible-project] Re: changing a password with ansible

2021-06-16 Thread Roberto Paz
Previously I used this to assign random passwords to users: == - name: "Set value to 'salt'" set_fact: salt: "{{ lookup('password', '/dev/null length=8 chars=ascii_letters') }}" delegate_to: localhost - name: "Set value to 'newPassword'" set_fact: newPassword:

[ansible-project] Multiple choice question? Ansible

2021-06-16 Thread Krishna Gupta
Question: Ansible variable names may contain which of the following? Choose all that apply a: letters b: underscores c: numbers d: hyphens -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] How to change password

2021-06-16 Thread Vladimir Botka
On Wed, 16 Jun 2021 18:35:50 +0530 Komal Suthar wrote: > Any approach to change the existing users password on 200 plus machines in > a safe way. Where do you keep the passwords? -- Vladimir Botka -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] Multiple Choice Question? Ansible

2021-06-16 Thread 'Felix Fontein' via Ansible Project
Hi, is this some kind of homework? How about using your favorite search engine to look for the documentation of that module and answering your questions yourself? Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] Multiple Choice Question? Ansible

2021-06-16 Thread Krishna Gupta
Question: What module allows you to output information on the ansible control node during playbook execution? a: stdout b: echo c: debug d: print -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] Multiple choice question? Ansible

2021-06-16 Thread Brian Coca
dest and validate name is a 'task keyword', so not part of the module state is used by the copy and file modules (which template uses), but not directly by template, which assumes its always state==present/file -- -- Brian Coca -- You received this message because you are subscribed

Re: [ansible-project] Re: Getting Error while running playbook "msg": "[Errno None] Unable to connect to port 22

2021-06-16 Thread subrat mangaraj
Hello Experts, Can someone reply. On Tue, Jun 15, 2021 at 7:54 PM subrat mangaraj wrote: > Hello Experts > Can someone guide here. > Br// > Subrat > > On Mon, 14 Jun 2021, 21:53 subrat mangaraj, > wrote: > >> Hello Reg, >> Can you share your inputs. >> I am trying to fetch show output from

[ansible-project] Multiple choice question? Ansible

2021-06-16 Thread Krishna Gupta
Which of the following are valid parameters of the template module? (Choose all that apply) a: state b: dest c: validate d: name -- 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

Re: [ansible-project] How to change password

2021-06-16 Thread Antony Stone
On Wednesday 16 June 2021 at 15:05:50, Komal Suthar wrote: > Hello, > Any approach to change the existing users password on 200 plus machines in > a safe way. What type of machines (ie: what operating system), and what do you mean by "safe"? Antony. -- Warum können Seeräuber nicht den

[ansible-project] How to change password

2021-06-16 Thread Komal Suthar
Hello, Any approach to change the existing users password on 200 plus machines in a safe way. -- 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