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
|
connection: local
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
vars_prompt:
|
||||||
|
- name: leet_passwd
|
||||||
|
prompt: 'Enter password for 1337 share: '
|
||||||
|
unsafe: yes
|
||||||
|
private: yes
|
||||||
|
when: ansible_distribution == "Pop!_OS"
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- include: facts/system.yml
|
- include: facts/system.yml
|
||||||
- include: facts/package.yml
|
- include: facts/package.yml
|
||||||
|
@ -12,12 +12,6 @@
|
|||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
ignore_errors: yes
|
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
|
- name: SSH Key | Root | Copy to 1337
|
||||||
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet
|
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet
|
||||||
args:
|
args:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user