Re: [ansible-project] Basic Ansible

2021-03-29 Thread Dick Visser
On Tue, 30 Mar 2021 at 08:44, shubham suroshe wrote: > Hello Team, > > Does ansible.cfg and /etc/ansible directory created automatically when i > install ansible ? > Not if you use a python virtualenv. > > I have installed ansible in virtaul environment. I am not able to locate > ansible.cfg or

Re: [ansible-project] Basic Ansible

2021-03-29 Thread Tej Singh Rana
"Does ansible.cfg and /etc/ansible directory created automatically when i install ansible ?" *Yes* On Tue, Mar 30, 2021 at 12:14 PM shubham suroshe wrote: > Hello Team, > > Does ansible.cfg and /etc/ansible directory created automatically when i > install ansible ? > > I have installed ansible i

[ansible-project] Basic Ansible

2021-03-29 Thread shubham suroshe
Hello Team, Does ansible.cfg and /etc/ansible directory created automatically when i install ansible ? I have installed ansible in virtaul environment. I am not able to locate ansible.cfg or host file. what i can see in my ansible-config file config file = None Thanks Shubham -- You receive

Re: [ansible-project] Re: Changing ansible_shell_type - is ansible reusing ssh connection?

2021-03-29 Thread jbor...@gmail.com
Best to just ask it here, benefits others who might want to search the history if they have the same question. On Monday, March 29, 2021 at 11:05:02 PM UTC+10 needabettername wrote: > Thank you, incredible helpful. Off to read more about that now. > > Also wanted to take the opportunity to thank

Re: [ansible-project] Ansible's paths crossed? or need to install python 3 in right folder?

2021-03-29 Thread Kristina Bressler
Hi, Additionally, everything was fine when I start up a project with "vagrant up" but when I checked with "vagrant provision", I got this error mentioned in my first email. I was just wondering if "vagrant provision" does play a role in getting this error? -Kristina On Monday, March 29, 2021

Re: [ansible-project] Ansible's paths crossed? or need to install python 3 in right folder?

2021-03-29 Thread Kristina Bressler
Hi, I'm not sure what you mean. So what I can gather from your message is what I did: 1. type in ansible - 2. I don't see anything like "Using module file..." 3. What I'm seeing are Module_Path: prepend colon-separated path(s) to module library (default=['/Users/kiki/.

Re: [ansible-project] Need clarification on the max routers to which ansible can copy image simultaneously?

2021-03-29 Thread Brian Coca
Key phrase is 'by default', you can control how many forks ansible uses (serial is different but does limit the number of usable forks). --forks 100 wil allow you to run 100 in parallel, the lmit is mostly down to the resources on your controller and how many forks it can run simultaneiouslly. ---

Re: [ansible-project] Re: Changing ansible_shell_type - is ansible reusing ssh connection?

2021-03-29 Thread need abettername
Thank you, incredible helpful. Off to read more about that now. Also wanted to take the opportunity to thank you, I was reading your excelelnt article on Windows Mapped drives the other day. Still some testing to do on that but I may have a question there. If so shall I put it on this list? On Mo

[ansible-project] Register variable in task with loop and use registered results for task conditional

2021-03-29 Thread tterr...@gmail.com
I am trying to run a loop over a task and I am registering the results. The items in the loop are not unique and can repeat. I don't want to run the same item twice. So, in the same task, I want to use a conditional to check if the current loop item has run so far in the loop. For this, I use th

Re: [ansible-project] Ansible Bonding with automatic recongition of interfaces

2021-03-29 Thread Dick Visser
Where does interfaces_per_speed come from? Can you post all the data/vars/etc? On Mon, 29 Mar 2021 at 10:16, bmc1...@gmail.com wrote: > > > I have some issues with my project. I need to bond two interfaces, > automatically choosing the two with 25Gbit speed. I'm able to make a normal > bonding

Re: [ansible-project] Ansible shows error that says missing ':' even when it is already present

2021-03-29 Thread Vikram S
Hi, '-' shouldn't be used for register module. I later found that there was an empty space after the line which was causing the error. On Friday, 26 March, 2021 at 6:48:02 pm UTC+5:30 lie...@punkt.de wrote: > I cannot tell for sure without seeing the code of this task, but could it > perhaps b

[ansible-project] Ansible Bonding with automatic recongition of interfaces

2021-03-29 Thread bmc1...@gmail.com
I have some issues with my project. I need to bond two interfaces, automatically choosing the two with 25Gbit speed. I'm able to make a normal bonding selecting the interface names, I'm able to filter the interfaces through speed too, but I'm lost trying to connect both ideas. This is my Bond

[ansible-project] Need clarification on the max routers to which ansible can copy image simultaneously?

2021-03-29 Thread Vikram S
I read that by default, for each task, Ansible will fork five parallel threads (called forks) and execute these threads in parallel across five nodes in the inventory. Once these tasks finish, it will target the remaining devices in the inventory in a batch of five nodes. 1. Does t

[ansible-project] Re: When Condition use with Variables

2021-03-29 Thread Pravin V
Hello Everyone, Please advise. On Friday, 26 March 2021 at 17:55:22 UTC+5:30 Pravin V wrote: > Hello Everyone, > > I've a task - > - name: Device Description > uri: > url: "{{ URL }}/api-db?username={{ USERNAME }};password={{ > PASSWORD }};cmds=mget+*+{{ display_name }}+sys+SNMPv2-MIB.sy