Remove ~/.optbin and ~/.opt
This commit is contained in:
25
user.yml
25
user.yml
@@ -225,29 +225,6 @@
|
|||||||
- bin_stat.stat.exists
|
- bin_stat.stat.exists
|
||||||
- not bin_stat.stat.islnk
|
- not bin_stat.stat.islnk
|
||||||
|
|
||||||
- name: create ~/.opt and ~/.optbin
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
with_items:
|
|
||||||
- ~/.opt/
|
|
||||||
- ~/.optbin/
|
|
||||||
|
|
||||||
- name: symlink opt programs
|
|
||||||
file:
|
|
||||||
state: link
|
|
||||||
force: true
|
|
||||||
follow: false
|
|
||||||
path: "/home/{{ user.name }}/.optbin/{{ item.name }}"
|
|
||||||
src: "/home/{{ user.name }}/.opt/{{ item.optpath }}"
|
|
||||||
owner: "{{ user.name }}"
|
|
||||||
group: "{{ user_group_name }}"
|
|
||||||
with_items:
|
|
||||||
- name: hugo
|
|
||||||
optpath: hugo
|
|
||||||
- name: drone
|
|
||||||
optpath: drone
|
|
||||||
|
|
||||||
- name: link bin directory
|
- name: link bin directory
|
||||||
file:
|
file:
|
||||||
state: link
|
state: link
|
||||||
@@ -511,7 +488,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: add passwordstore init script
|
- name: add passwordstore init script
|
||||||
copy:
|
copy:
|
||||||
dest: /home/{{ user.name }}/.optbin/pass
|
dest: /home/{{ user.name }}/bin
|
||||||
owner: "{{ user.name }}"
|
owner: "{{ user.name }}"
|
||||||
group: "{{ user_group_name }}"
|
group: "{{ user_group_name }}"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ source /etc/profile
|
|||||||
|
|
||||||
_path=(
|
_path=(
|
||||||
"$HOME/bin"
|
"$HOME/bin"
|
||||||
"$HOME/.optbin"
|
|
||||||
"$HOME/.cargo/bin"
|
"$HOME/.cargo/bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user