Make cleaning directory work properly
This commit is contained in:
parent
e0d6ead5f5
commit
7dd3ac24fc
24
README.md
24
README.md
@ -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
|
Sync syncs tmux/vim/bash config files with one command
|
||||||
|
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
with_filetree: "skel/"
|
with_filetree: "skel/"
|
||||||
- name: Remove cloned repositories
|
- name: Remove cloned repositories
|
||||||
file:
|
file:
|
||||||
path: "{{ local_path }}/{{ item.path }}"
|
path: "{{ local_path }}/{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop:
|
loop:
|
||||||
- "{{ local_path }}/.fzf"
|
- ".fzf"
|
||||||
|
- ".vim"
|
||||||
|
11
sync.sh
11
sync.sh
@ -1,15 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/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)"
|
\cd "$(dirname $0)"
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
|
Loading…
Reference in New Issue
Block a user