of yet.
Thanks, as always for any advice.
Regards
Bill
From: ansible-project@googlegroups.com On
Behalf Of Dan Linder
Sent: Tuesday, July 9, 2019 3:59 AM
To: Ansible Project
Subject: Re: [ansible-project] using different remote_user until success
On Monday, July 8, 2019 at 2
– thanks for the suggestion
and the answers to my questions, much appreciated.
Regards
Bill
From: ansible-project@googlegroups.com On
Behalf Of Dan Linder
Sent: Tuesday, July 9, 2019 3:59 AM
To: Ansible Project
Subject: Re: [ansible-project] using different remote_user until success
On Monday, July 8, 2019 at 2:41:54 PM UTC-5, william...@gmail.com wrote:
>
> So, it will run include-3.yml 3 times? And one will succeed?
>
Yes - in my testing, I added a good user account to use, and that one ran
the ping successfully.
> I obviously have a number of tasks to run after
Project
Subject: Re: [ansible-project] using different remote_user until success
Are you opposed to using a second playbook and using the "include:" module like
this?
---
- hosts: all
gather_facts: false
tasks:
- name: try users
#remote_user: "{{ item }}"
in
: william...@gmail.com >
> Sent: Monday, July 8, 2019 10:09 AM
> To: ansible...@googlegroups.com
> Subject: RE: [ansible-project] using different remote_user until success
>
> Hi Brian, this seemed like a good way to do it, but I haven't been able to
> make it work - I haven't do
Sorry, pressed send inadvertently there...
-Original Message-
From: william.doss...@gmail.com
Sent: Monday, July 8, 2019 10:09 AM
To: ansible-project@googlegroups.com
Subject: RE: [ansible-project] using different remote_user until success
Hi Brian, this seemed like a good way to do
19 8:10 AM
To: Ansible Project
Subject: Re: [ansible-project] using different remote_user until success
loop a ping task over the users and use 'ignore_unreachable' and
failed_when: false to keep running that task, register the result and set
ansible_user using the results.
--
--
Brian Co
loop a ping task over the users and use 'ignore_unreachable' and
failed_when: false to keep running that task, register the result and
set ansible_user using the results.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project"
I've been struggling with this and googling all morning and getting nowhere
fast.
I am using aws dynamic inventory python script to get me an inventory of
instances that I am going to make some changes to.
I need to do this on possibly a large number of accounts. The first account
I am