Add pass auth for none-key hosts
Showing
4 changed files
with
21 additions
and
3 deletions
@@ -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 |
playbooks/templates/authorized_keys.j2
0 → 100644
1 | +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDO04RuVd9pVx3Clp6aDIfkHnhgXLHv42etM9RP3OoZwXYnL+Bvze4bY9APjALAzwnMvyLbGxoHe3sLurcH5FgLu6YDEA6t+ybxvyWcWloW2w2pDEKB/08NugRoVkNlKXj8a1D4PsiqTMolg92JxGMfdqFmh4/Y6Qnqapdw1+oPew== skey_116044 | ||
2 | +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCsKadEo3Fq0u6VdGsqnP7eWQrem5Agxsb16YJAuqGeI5EIiv4rw73lui9iS0QUD27XEPauICKdLptruu7miJB+61bqTC2yPJni+Zb8t/HTimXIGtgjX3SNoEje3YtfEvbkYMay2heQEBh9A4PedTGrvz1Lohkb/yNkDu3Obq5Siw== skey_54890 |
playbooks/templates/resolv.conf.j2
0 → 100644
-
Please register or login to post a comment