Moving vars_prompt and testing if it accepts when clause.
This commit is contained in:
parent
59e2789df0
commit
251b2acc37
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user