Can you not put an ssh key on the host?
a single account can have multiple keys

From: ansible-project@googlegroups.com <ansible-project@googlegroups.com> On 
Behalf Of Go Away
Sent: 13 October 2020 12:50
To: Ansible Project <ansible-project@googlegroups.com>
Subject: [ansible-project] Failing host (or better still - a group of hosts) 
after one login failure.

I have (again ;->) a quite unusual situation.
I have a bunch of hosts to which I connect with ansible to perform some tasks. 
The problem is that they are not mine alone and the authentication is done with 
password and is based on some central directory service. So I have a shared 
account for some servers and since the password gets aged-out, there may be a 
situation that my password stored in keepass is no longer valid.
If I try to run a playbook against an inventory file consiting of some of the 
servers for which the password is no longer valid I end up locking myself out 
of the account. So is there a way to make ansible give up on a host (or even 
better - on a whole bunch of hosts sharing the same credentials) if I get even 
a single login failure?

Best regards,
MK
--
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 
ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/caefeafa-442f-479e-9d93-ef609f08450cn%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/caefeafa-442f-479e-9d93-ef609f08450cn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Stuart Lowe
Cloud and Hosting Support Engineer
Zen Internet
Team: 01706 902009
Web: zen.co.uk


Proud to be a certified B Corporation


This message is private and confidential. If you have received this message in 
error, please notify us and remove it from your system.


Zen Internet Limited may monitor email traffic data to manage billing, to 
handle customer enquiries and for the prevention and detection of fraud. We may 
also monitor the content of emails sent to and/or from Zen Internet Limited for 
the purposes of security, staff training and to monitor quality of service.

Zen Internet Limited is registered in England and Wales, Sandbrook Park, 
Sandbrook Way, Rochdale, OL11 1RY Company No. 03101568 VAT Reg No. 686 0495 01

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/VI1PR01MB43178563DBA02EC286510157A8040%40VI1PR01MB4317.eurprd01.prod.exchangelabs.com.

Reply via email to