Shell is prompting just fine on its own, no need for variable. Make sure leet folder exists.

This commit is contained in:
Hyperling 2021-02-01 07:56:00 -06:00
parent e2921ea6d7
commit 1e453e8df4
3 changed files with 5 additions and 10 deletions

View File

@ -7,12 +7,6 @@
connection: local
become: true
vars_prompt:
- name: leet_passwd
prompt: 'Enter password for 1337 share: '
unsafe: yes
private: yes
pre_tasks:
- include: facts/system.yml
- include: facts/package.yml

View File

@ -14,5 +14,3 @@
- name: SSH Key | Root | Copy to 1337
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet
args:
stdin: "{{ leet_passwd }}"

View File

@ -1,7 +1,10 @@
---
# 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:
path: /etc/fstab
block: |