---# tasks file for bootstrap-name:include assert.ymlinclude_tasks:assert.ymlrun_once:yes-name:wait for hostwait_for:port:"{{ansible_port|default('22')}}"host:"{{(ansible_ssh_host|default(ansible_host)|default(inventory_hostname))}}"connection:localbecome:nowhen:-ansible_connection is defined-ansible_connection not in ["docker", "container"]-bootstrap_wait_for_host | bool-name:prepare systemblock:-name:test connectionwait_for_connection:timeout:"{{bootstrap_timeout}}"register:bootstrap_connectchanged_when:norescue:-name:gather bootstrap factsinclude_tasks:"gather_facts.yml"-name:install bootstrap packagesraw:"{{bootstrap_install.raw}}"register:bootstrap_install_packageschanged_when:(bootstrap_install.stdout_regex in bootstrap_install_packages.stdout andbootstrap_os_family in ['Alpine', 'Archlinux', 'Gentoo']) or (bootstrap_install.stdout_regex not in bootstrap_install_packages.stdout andbootstrap_os_family in ['Debian', 'RedHat', 'Suse'])vars:ansible_user:"{{bootstrap_user}}"always:-name:set bootstrap_ansible_userset_fact:bootstrap_ansible_user:"{{ansible_user|default(omit)ifbootstrap_connectissucceededelsebootstrap_user}}"changed_when:no-name:ensure system is preparedblock:-name:gather ansible factssetup:-name:install bootstrap packagespackage:name:"{{item}}"state:presentloop:"{{bootstrap_facts_packages.split()}}"vars:ansible_user:"{{bootstrap_ansible_user|default(omit)}}"