Moving vars_prompt and testing if it accepts when clause.

This commit is contained in:
Hyperling 2021-02-01 07:29:59 -06:00
parent 59e2789df0
commit 251b2acc37
2 changed files with 7 additions and 6 deletions

View File

@ -7,6 +7,13 @@
connection: local
become: true
vars_prompt:
- name: leet_passwd
prompt: 'Enter password for 1337 share: '
unsafe: yes
private: yes
when: ansible_distribution == "Pop!_OS"
pre_tasks:
- include: facts/system.yml
- include: facts/package.yml

View File

@ -12,12 +12,6 @@
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: