/bin/bash fixed redirect. Looks like ssh-copy-id is asking for password due to /bin/sh, use bash for it as well.
This commit is contained in:
parent
9f69fcf4c1
commit
24c61eb220
@ -6,24 +6,13 @@
|
|||||||
# openssh_keypair:
|
# openssh_keypair:
|
||||||
# path: /root/.ssh/id_rsa
|
# path: /root/.ssh/id_rsa
|
||||||
|
|
||||||
- name: Create Root's SSH Key
|
- name: SSH Key | Root | Create
|
||||||
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n
|
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Create Root's SSH Key
|
- name: SSH Key | Root | Copy to 1337
|
||||||
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa
|
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet
|
||||||
args:
|
|
||||||
stdin: "n"
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: Create Root's SSH Key
|
|
||||||
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa
|
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
stdin: "n"
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: Join System to 1337 Share
|
|
||||||
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet
|
|
Loading…
x
Reference in New Issue
Block a user