Authored by root

Add pass auth for none-key hosts

@@ -2,6 +2,12 @@ @@ -2,6 +2,12 @@
2 # playbook files for resolv 2 # playbook files for resolv
3 - hosts: emr-recom 3 - hosts: emr-recom
4 remote_user: root 4 remote_user: root
5 - roles:  
6 - - resolv  
7 - - base 5 + #roles:
  6 + # - resolv
  7 +
  8 + tasks:
  9 + - name: Configure authorized_keys
  10 + template:
  11 + src: authorized_keys.j2
  12 + dest: /root/.ssh/authorized_keys
  13 + mode: 0600
  1 +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDO04RuVd9pVx3Clp6aDIfkHnhgXLHv42etM9RP3OoZwXYnL+Bvze4bY9APjALAzwnMvyLbGxoHe3sLurcH5FgLu6YDEA6t+ybxvyWcWloW2w2pDEKB/08NugRoVkNlKXj8a1D4PsiqTMolg92JxGMfdqFmh4/Y6Qnqapdw1+oPew== skey_116044
  2 +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCsKadEo3Fq0u6VdGsqnP7eWQrem5Agxsb16YJAuqGeI5EIiv4rw73lui9iS0QUD27XEPauICKdLptruu7miJB+61bqTC2yPJni+Zb8t/HTimXIGtgjX3SNoEje3YtfEvbkYMay2heQEBh9A4PedTGrvz1Lohkb/yNkDu3Obq5Siw== skey_54890
  1 +# {{ ansible_managed }}
  2 +
  3 +
  4 +{% for i in groups['nameservers'] %}
  5 +nameserver {{ i }}
  6 +{% endfor %}
  7 +
  8 +{% if nameserver_timeout %}
  9 +options timeout: {{ nameserver_timeout }} rotate
  10 +{% endif %}