[ansible-project] restart service only if its successful

2023-07-10 Thread Sameer Modak
Hello team, I am trying to restart zookeeper service on all 3 nodes sequentially , we want restart zookeeper service one by one but it will be only run on 2nd server if 1st server zookeeper service was successful. How do i achieve this in 1 task . task should fail if service is not properly re

Re: [ansible-project] Unable to Cisco IOS due to KexAlgorithms

2023-07-10 Thread Bikram
Hi Dick, ansible_connection is 'ansible.netcommon.network_cli' which is inside the playbook. Thanks Bikram On Mon, Jul 10, 2023 at 1:46 PM Dick Visser wrote: > I don't see you setting ansible_connection anywhere. > According to > > https://docs.ansible.com/ansible/latest/network/user_guide/ne

Re: [ansible-project] Unable to Cisco IOS due to KexAlgorithms

2023-07-10 Thread Dick Visser
I don't see you setting ansible_connection anywhere. According to https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html that is recommended. There are a bunch of other settings as well On Mon, 10 Jul 2023 at 15:12, Bikram wrote: > Hi Dick, > > Here is the sam

[ansible-project] Re: Unable to Cisco IOS due to KexAlgorithms

2023-07-10 Thread dbs34
I had a very similar problem that was resolved by creating a file called config under the users .ssh directory. this file contains Host k200 hoitsw0* hosw*0* hoswe0* mislxsrv stage instore central zzswm01 sysadm rvswm0* clswm0* cmswa0* cmswm0* crsw* gwswm* Ciphers +aes256-cbc,3des-cbc K

Re: [ansible-project] Unable to Cisco IOS due to KexAlgorithms

2023-07-10 Thread Bikram
Hi Dick, Here is the sample of my inventory: [ios] twddxcsw04 ansible_host = 10.x.x.x ansible_ssh_user= ansible_ssh_pass= Thanks Bikram On Sat, Jul 8, 2023 at 2:07 AM Dick Visser wrote: > What does your inventory look like? > > On Fri, 7 Jul 2023 at 21:07, Bikram wrote: > >> Hi

Re: [ansible-project] Unable to Cisco IOS due to KexAlgorithms

2023-07-10 Thread Bikram
Hi Sagar, Yes, I tried settings ansible_network_cli_ssh_type = libssh and ansible_network_cli_ssh_type=paramiko but no success. I think libssh is the default ssh type for ansible. I wanted to know if ansible supports Cisco IOS soft version: 12.2(55)SE10. This version will not allow you to change

[ansible-project] How to provide access to multiple namesapaces using Ansible

2023-07-10 Thread Sonali Sarade
Hi All, I'm trying to do SSH in to linux machchin using ansible and authentication method is using vault CA. I've completed this step but now I'm trying to know how to provide a accees to multiple vault namespaces with the common token using Ansible. Here we want vault to generate this dynamic tok

Re: [ansible-project] File not writable mode block

2023-07-10 Thread Dick Visser
I think you should get in touch with your Oracle support contact, they should be able to help you On Mon, 10 Jul 2023 at 12:37, vibha rajnag wrote: > Hi All, > > I am facing some issue, > I am calling some restful api in my playbook and and that api will be > generating csv file in .gz format an

[ansible-project] File not writable mode block

2023-07-10 Thread vibha rajnag
Hi All, I am facing some issue, I am calling some restful api in my playbook and and that api will be generating csv file in .gz format and again I am converting in csv using gunzip, but it is getting saved in local. Now when I want to run my playbook from oracle Linux automation manager, I am ge