Make cleaning directory work properly

This commit is contained in:
Austen Adler 2018-07-05 17:15:28 -04:00
parent e0d6ead5f5
commit 7dd3ac24fc
3 changed files with 28 additions and 18 deletions

View File

@ -1,5 +1,25 @@
Sync
=========
# Sync
### Examples
#### Delete everything in skel
./sync.sh clean
#### Secure SSH
./sync.sh secure --ask-become-pass --tags
#### Disable SSH password authentication
./sync.sh secure --extra-vars 'disable_passwordauth=true' --ask-become-pass
#### Use 1.1.1.1 dns
./sync.sh dns --ask-become-pass
#### Sync for root
./sync.sh default,vim --become --ask-become-pass
Sync syncs tmux/vim/bash config files with one command

View File

@ -5,7 +5,8 @@
with_filetree: "skel/"
- name: Remove cloned repositories
file:
path: "{{ local_path }}/{{ item.path }}"
path: "{{ local_path }}/{{ item }}"
state: absent
loop:
- "{{ local_path }}/.fzf"
- ".fzf"
- ".vim"

11
sync.sh
View File

@ -1,15 +1,4 @@
#!/bin/bash
# Examples
# Secure SSH
# ./sync.sh secure --ask-become-pass --tags
# Disable SSH password authentication
# ./sync.sh secure --extra-vars 'disable_passwordauth=true' --ask-become-pass
# Use 1.1.1.1 dns
# ./sync.sh dns --ask-become-pass
# Sync for root
# ./sync.sh default,vim --become --ask-become-pass
\cd "$(dirname $0)"
if [ -z "$1" ]; then
echo "Usage:"