--- - name: Include vault variables. ansible.builtin.include_vars: defaults/main-vault.yml - name: Create a new Linode. linode_v4: label: '{{ label }}' access_token: '{{ token }}' type: '{{ type }}' region: '{{ region }}' image: linode/debian11 root_pass: '{{ password }}' authorized_keys: '{{ ssh_keys }}' group: servers state: '{{ state }}' register: my_linode - name: Wait for SSH to come up delegate_to: localhost ansible.builtin.wait_for: host: "{{ my_linode.instance.ipv4[0] }}" port: 22 search_regex: OpenSSH timeout: 320 - name: Instance Details ansible.builtin.debug: msg: '{{ my_linode }}' # - name: Update hosts.ini # blockinfile: # path: hosts.ini # block: | # [linode] # {% for host in linode_hosts %} # {{ host.user }}@{{ host.ip }} # {% endfor %}