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:
Hyperling 2021-02-01 07:26:54 -06:00
parent 24c61eb220
commit 59e2789df0

View File

@ -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 }}"