use native file module
parent
e28bf336f5
commit
753b4eb020
|
@ -1,5 +1,12 @@
|
||||||
---
|
---
|
||||||
|
- name: create ~/.local/bin
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ ansible_env.HOME }}/.local/bin"
|
||||||
|
mode: "0750"
|
||||||
|
|
||||||
- name: install chezmoi
|
- name: install chezmoi
|
||||||
shell: mkdir -p ~/.local/bin && sh -c "$(curl -fsLS git.io/chezmoi)" && mv ~/bin/chezmoi ~/.local/bin/
|
shell: sh -c "$(curl -fsLS git.io/chezmoi)" && mv ~/bin/chezmoi ~/.local/bin/
|
||||||
args:
|
args:
|
||||||
|
chdir: "{{ ansible_env.HOME }}"
|
||||||
creates: "{{ ansible_env.HOME }}/.local/bin/chezmoi"
|
creates: "{{ ansible_env.HOME }}/.local/bin/chezmoi"
|
||||||
|
|
Reference in New Issue