Ask for password then pass it to the ssh-copy-id. Hoping prompt does not need moved to local.yml.
This commit is contained in:
parent
24c61eb220
commit
59e2789df0
@ -12,7 +12,13 @@
|
||||
executable: /bin/bash
|
||||
ignore_errors: yes
|
||||
|
||||
- vars_prompt:
|
||||
- name: leet_passwd
|
||||
prompt: 'Enter password for 1337 share: '
|
||||
unsafe: yes
|
||||
private: yes
|
||||
|
||||
- name: SSH Key | Root | Copy to 1337
|
||||
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet
|
||||
args:
|
||||
executable: /bin/bash
|
||||
stdin: "{{ leet_passwd }}"
|
Loading…
x
Reference in New Issue
Block a user