all.yml (1531B)
1 --- 2 3 # ssh configuraiton to reach the VMs 4 # this is only an example, each line 5 # needs to enabled explicitly in group_vars 6 ansible_user: root 7 ssh_identity_file: '../ssh/id_rsa' 8 ssh_proxy_jump: proxyhost 9 ssh_include_config: '~/.ssh/config' 10 11 # allow sudo/wheel users to execute any command without password 12 ssh_passwordless_login: no 13 # example of adding additional users 14 # additional_users: 15 # - name: user1 16 # # comma seperated list of additional groups 17 # additional_groups: 'wheel' 18 # # mutually exclusive with reuse_ssh_key below 19 # generate_ssh_key: yes 20 # # mutually exclusive with generate_ssh_key above 21 # # lets you reuse an existing ssh key 22 # #ssh_key: '{{ ssh_identity_file }}' 23 # # adds this key as authorized key 24 # #authorized_key: '~/.ssh/id_rsa.pub' 25 26 # The cloud-init config template has manage_etc_hosts enabled by default. 27 # This will overwrite the state of /etc/hosts at each reboot. The default 28 # cloud-init configuratin resolves {{ ansible_hostname }} to 127.0.0.1. 29 # This is not desirable in all cases, since sometimes you want it to resolve 30 # the public IP (not localhost). This option will disable the line that 31 # resolves {{ ansible_hostname }} to 127.0.0.1 in all relevant files. The file 32 # /etc/hosts will still be overwritten at each reboot, but without the line resolving 33 # {{ ansible_hostname }} to 127.0.0.1. Choose 'yes' to enable this temporary fix 34 # (better configure this at an earlier stage, with Terraform and cloud-init). 35 cloud_init_disable_localhost_resolver: no