<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Ansible_Sandbox</id>
	<title>Ansible Sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Ansible_Sandbox"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Ansible_Sandbox&amp;action=history"/>
	<updated>2026-05-30T20:16:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Ansible_Sandbox&amp;diff=2478&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` - name: Playbook header to try multiple logins   hosts: all   gather_facts: no   vars:     usernames:     - idjs     - joe.smith     - jsmith     - foo     password: somep...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Ansible_Sandbox&amp;diff=2478&amp;oldid=prev"/>
		<updated>2021-11-16T16:46:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` - name: Playbook header to try multiple logins   hosts: all   gather_facts: no   vars:     usernames:     - idjs     - joe.smith     - jsmith     - foo     password: somep...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
- name: Playbook header to try multiple logins&lt;br /&gt;
  hosts: all&lt;br /&gt;
  gather_facts: no&lt;br /&gt;
  vars:&lt;br /&gt;
    usernames:&lt;br /&gt;
    - idjs&lt;br /&gt;
    - joe.smith&lt;br /&gt;
    - jsmith&lt;br /&gt;
    - foo&lt;br /&gt;
    password: somepassword&lt;br /&gt;
&lt;br /&gt;
  tasks:&lt;br /&gt;
&lt;br /&gt;
  - name: Check if connection is possible&lt;br /&gt;
    shell: |&lt;br /&gt;
      SSHPASS='{{password}}' sshpass -e ssh -o User={{ item }} -o ConnectTimeout=10 -o PubkeyAuthentication=no {{ ansible_host }} /bin/true&lt;br /&gt;
    register: result&lt;br /&gt;
    connection: local&lt;br /&gt;
    ignore_errors: yes&lt;br /&gt;
    changed_when: False&lt;br /&gt;
    with_items: &amp;quot;{{usernames}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  # - debug:&lt;br /&gt;
  #     var: result&lt;br /&gt;
&lt;br /&gt;
  - debug:&lt;br /&gt;
      msg: &amp;quot;{{ (result.results | rejectattr('failed', 'equalto', true)|first).item}}&amp;quot;&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>