Skip to content

host variables in template/hosts.j2 on ansible target servers are not correct/useable. #9

@pjotrek-b

Description

@pjotrek-b

The current template for hosts on the ansible targets, doesn't work for me:

{{ host.ansible_host }} ansible_ssh_host={{ host.ansible_ssh_hostname }} ansible_host={{ host.ansible_ssh_hostname }} ansible_ssh_user={{ host.ansible_ssh_username }}

It resolves /any/ host.ansible value to the actual /ansible/ host-alias from /etc/ansible/hosts or similar INI file.
In case of the default config from the official documentation:

  • host.ansible_ssh_hostname=atom-ro-server

Connecting to the host by this alias works great (replication fine!). I just need to manually fix the hosts to point to the FQDN "atom-ro.example.com" server name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions