[ansible-project] Re: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Appl ying options for *\r\ndebug1

2022-01-05 Thread Akshay Kumar
Hello, Thank you for the response. Debug is not enabled. And when i try to login manually to the client server, it goes smooth without any error. On Tuesday, 4 January 2022 at 18:16:30 UTC+5:30 rjr...@gmail.com wrote: > Those "debug" messages seems to be related to debug enabled on sshd. > >

[ansible-project] OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Appl ying options for *\r\ndebug1: a

2022-01-03 Thread Akshay Kumar
I am getting below error while trying to run the ansible playbook for AIX patching. Could someone please help me out? OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Appl ying options for

[ansible-project] BlockinFile module help

2021-03-04 Thread Akshay Kumar
Hi Guys , I am using the below block for writing a variable values into a file - name: Add output of task for getting content to the local local_action: module: blockinfile path: "{{ File }}" marker: " " state: present block: | {{ item }}:

Re: [ansible-project] Printing items in a file using lineinfile/blockinfile

2021-02-08 Thread Akshay Kumar
> 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 4 hosts thus want the output in such a way >>

[ansible-project] Printing items in a file using lineinfile/blockinfile

2021-02-08 Thread Akshay Kumar
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 4 hosts thus want the output in such a way that: 1st host SQL1 output SQL2 Output SQL3 output SQL4 Output 2nd host ... and so on Currently i am using this

[ansible-project] List comparison and retireval of items on match

2021-01-12 Thread Akshay Kumar
Hi All, Good day to all. I am currently working on a scenario where i need to compare two lists and print out the items which match on both lists . List1 : ['dba','admin','developer'] List2 : [' user1: dba admin' , 'user2 : dba developer', 'user3 : operator'] So as per my scenario in

Re: [ansible-project] Setting a variable in one playbook and using that in another

2020-12-16 Thread Akshay Kumar
Thanks a lot D.Visser , appreciate it :-) On Tue, Dec 15, 2020 at 6:27 PM Dick Visser wrote: > When you need to persist a variable between playbooks, you can use a > dummy host to tie the variable to: > https://stackoverflow.com/a/47811099 > > On Tue, 15 Dec 2020 at 17:54, Aksh

[ansible-project] Setting a variable in one playbook and using that in another

2020-12-15 Thread Akshay Kumar
Hi Everyone, Hope all are well . I have a small query where in i want to know if i can set a variable in one playbook and use that in another playbook. For eg Playbook1 : setting a var with output of shell set_fact: var1: test Playbook2 - debug: msg: "{{ var1 }}" Note : i found

[ansible-project] Performing action on list items inside another loop

2020-10-23 Thread Akshay Kumar
Hi guys, Please provide your advise on below scenario: Finding files and putting in a list code - - name: find Files to move find: paths: '{{ item.VlclDirName }}' patterns: '{{ item.VlclFileSpec }}' register: filesfound when: item.VlclDirName is defined and item.VlclUser ==

Re: [ansible-project] Accessing Cfg file values within nested loops + using sections + passing section in cmd argument

2020-10-19 Thread Akshay Kumar
sest I can guess is > "copy some configuration file(s)". > Please share that as well. > > On Mon, 19 Oct 2020 at 19:30, Akshay Kumar wrote: > > > > Hi All, > > > > Hope all is well with everyone during these bad times because of covid > :-). > > > &

[ansible-project] Accessing Cfg file values within nested loops + using sections + passing section in cmd argument

2020-10-19 Thread Akshay Kumar
Hi All, Hope all is well with everyone during these bad times because of covid :-). I would like to know some good advices from the community on a scenario am working on , it goes as followed: Cfg file: SectionA: ls: dirname: Command: List cp: srcdirname: