[ansible-project] Re: list all files in directory and copy all content.

2021-07-19 Thread Vincent Nambatac
I suspect what would be the right value in this unarchived_list.files[0] to input to copy all directories. When I tried another number like 1,2,3 only those another directories there are being copied . On Tuesday, July 20, 2021 at 9:42:49 AM UTC+8 Vincent Nambatac wrote: > > Hi the

[ansible-project] list all files in directory and copy all content.

2021-07-19 Thread Vincent Nambatac
Hi there , I want to ask what approach I will do If I want to copy all content in an unzip files. I unzip the files and list all directories. the problem is I want to copy all files inside the directory but only 1 content being copied. Can somebody how to it. Here is my code. - name: "Unzi

[ansible-project] telnet config output is not complete

2021-07-08 Thread Vincent Nambatac
Hi I would like to ask if how can I make a conditional statement for waiting the output to be complete before registering it . I manage to get the config in my router using telnet but then the config output is not complete. here is my script: - name: AUTOMATIC BACKUP OF RUNNING-CONFIG FOR RU

[ansible-project] How to pass ssh args in ansible

2021-07-08 Thread Vincent Nambatac
Hi Guys , I want to pass ang ssh arguments since I cannot directly use ssh@IP, I want to add this arguments; ssh -o KexAlgorithms=diffie-hellman-group14-sha1 -o HostKeyAlgorithms=+ssh-dss -caes128-cbc@IP How can i configure this to ansible. thanks in advance. -- You received this message bec

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-07 Thread Vincent Nambatac
gt; >> >> >> Is there no solution for this guys? >> On Tuesday, July 6, 2021 at 10:25:03 PM UTC+8 Vincent Nambatac wrote: >> >>> and also Im running at an ubuntu OS, here is the ram on my machine as >>> well. >>> >>> [image: Screenshot

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-07 Thread Vincent Nambatac
Is there no solution for this guys? On Tuesday, July 6, 2021 at 10:25:03 PM UTC+8 Vincent Nambatac wrote: > and also Im running at an ubuntu OS, here is the ram on my machine as well. > > [image: Screenshot from 2021-07-06 22-24-27.png] > > On Tuesday, July 6, 2021 at 10:23:12 P

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
and also Im running at an ubuntu OS, here is the ram on my machine as well. [image: Screenshot from 2021-07-06 22-24-27.png] On Tuesday, July 6, 2021 at 10:23:12 PM UTC+8 Vincent Nambatac wrote: > here is the system Im using on running with ansible. and no such > applications are running

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
g the system reach 8th it will fail . for example router1 fails at first run , and then the second run router 3 will fail but router 2 is ok . it is not consistent . On Tuesday, July 6, 2021 at 9:54:04 PM UTC+8 Antony Stone wrote: > On Tuesday 06 July 2021 at 15:46:16, Vincent Nambatac wrote: &

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
The order that doesn't matter at all . and yeah the 8th system will ALWAYS time out no matter what system it is . On Tuesday, July 6, 2021 at 9:43:59 PM UTC+8 Vincent Nambatac wrote: > alright i get it . the connection time out is not consistent only from the > last system[8t

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
alright i get it . the connection time out is not consistent only from the last system[8th] . any of those 8 are getting the error connection time out . On Tuesday, July 6, 2021 at 9:39:44 PM UTC+8 dick@geant.org wrote: > On Tue, 6 Jul 2021 at 15:28, Vincent Nambatac >

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
regardless of shuffling . as long as it reaches to 7 host the rest will get error connection time out. On Tuesday, July 6, 2021 at 9:27:53 PM UTC+8 Vincent Nambatac wrote: > Thanks for your response , Yes I tried to shuffle them . but then one of > those will get error connection time ou

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
huffle them around does it consistently break after the 7th > host? > > On Tue, 6 Jul 2021 at 15:05, Vincent Nambatac > wrote: > >> Here, there are 8 devices I set for the initial ssh. but then only 7 ssh >> connections are successful. the rest are failed.note that all t

[ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
OUTPUT TO ./backups/ copy: content: "{{ config.stdout[0] }}" dest: "./backups/{{ inventory_hostname }}-config.txt" On Tuesday, July 6, 2021 at 9:00:13 PM UTC+8 Vincent Nambatac wrote: > Here is my Ansible.cfg file, I did set the command time out but then only > the m

[ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
connections. please help [image: Screenshot from 2021-07-06 21-02-32.png] On Tuesday, July 6, 2021 at 9:01:25 PM UTC+8 Vincent Nambatac wrote: > Here is my backup.yml for my device[mikrotik] > > > --- > - name: AUTOMATIC BACKUP OF RUNNING-CONFIG FOR MIKROTIK > hosts: makati_ro

[ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
, July 6, 2021 at 8:39:39 PM UTC+8 Vincent Nambatac wrote: > > Im having a trouble in getting config with 30 plus routers . I can ssh and > get configs but the problem is , it is limited only with 7 ssh connections > . how can I fix this issue ? i added already command time out and

[ansible-project] [Errno 110] Connection timed out with multiple ssh in router

2021-07-06 Thread Vincent Nambatac
Im having a trouble in getting config with 30 plus routers . I can ssh and get configs but the problem is , it is limited only with 7 ssh connections . how can I fix this issue ? i added already command time out and persistent connection but still problem persist. how can I solve this issue?