Shell is prompting just fine on its own, no need for variable. Make sure leet folder exists.
This commit is contained in:
parent
e2921ea6d7
commit
1e453e8df4
@ -7,12 +7,6 @@
|
|||||||
connection: local
|
connection: local
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
vars_prompt:
|
|
||||||
- name: leet_passwd
|
|
||||||
prompt: 'Enter password for 1337 share: '
|
|
||||||
unsafe: yes
|
|
||||||
private: yes
|
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- include: facts/system.yml
|
- include: facts/system.yml
|
||||||
- include: facts/package.yml
|
- include: facts/package.yml
|
||||||
|
@ -14,5 +14,3 @@
|
|||||||
|
|
||||||
- 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:
|
|
||||||
stdin: "{{ leet_passwd }}"
|
|
@ -1,7 +1,10 @@
|
|||||||
---
|
---
|
||||||
# Mount shares that all systems should have.
|
# Mount shares that all systems should have.
|
||||||
|
|
||||||
- name: Add 1337 to fstab
|
- name: Mounts | Create 1337 Folder
|
||||||
|
shell: mkdir -p /mnt/leet
|
||||||
|
|
||||||
|
- name: Mounts | Create 1337 fstab Entry
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/fstab
|
path: /etc/fstab
|
||||||
block: |
|
block: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user