use native file module

main
Andrew Coleman 2021-04-16 16:39:04 -04:00
parent e28bf336f5
commit 753b4eb020
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
---
- name: create ~/.local/bin
file:
state: directory
path: "{{ ansible_env.HOME }}/.local/bin"
mode: "0750"
- 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:
chdir: "{{ ansible_env.HOME }}"
creates: "{{ ansible_env.HOME }}/.local/bin/chezmoi"