Authored by root

Add pass auth for none-key hosts

... ... @@ -2,6 +2,12 @@
# playbook files for resolv
- hosts: emr-recom
remote_user: root
roles:
- resolv
- base
#roles:
# - resolv
tasks:
- name: Configure authorized_keys
template:
src: authorized_keys.j2
dest: /root/.ssh/authorized_keys
mode: 0600
... ...
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDO04RuVd9pVx3Clp6aDIfkHnhgXLHv42etM9RP3OoZwXYnL+Bvze4bY9APjALAzwnMvyLbGxoHe3sLurcH5FgLu6YDEA6t+ybxvyWcWloW2w2pDEKB/08NugRoVkNlKXj8a1D4PsiqTMolg92JxGMfdqFmh4/Y6Qnqapdw1+oPew== skey_116044
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCsKadEo3Fq0u6VdGsqnP7eWQrem5Agxsb16YJAuqGeI5EIiv4rw73lui9iS0QUD27XEPauICKdLptruu7miJB+61bqTC2yPJni+Zb8t/HTimXIGtgjX3SNoEje3YtfEvbkYMay2heQEBh9A4PedTGrvz1Lohkb/yNkDu3Obq5Siw== skey_54890
... ...
# {{ ansible_managed }}
{% for i in groups['nameservers'] %}
nameserver {{ i }}
{% endfor %}
{% if nameserver_timeout %}
options timeout: {{ nameserver_timeout }} rotate
{% endif %}
... ...
... ... @@ -15,4 +15,4 @@
template:
src: resolv.conf.j2
dest: /etc/resolv.conf
mode: 0644
\ No newline at end of file
mode: 0644
... ...