Switch mkdir from shell to file/directory

Closes #21

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2020-10-17 13:12:22 +02:00
parent f1e4bc4898
commit 0b7969ad00
No known key found for this signature in database
GPG key ID: DE0CF444096A468D
4 changed files with 16 additions and 7 deletions

View file

@ -1,6 +1,8 @@
---
- name: Create directories for configuration
shell: mkdir ~/.ghc
file:
path: ~/.ghc
state: directory
- name: Install ghci.conf
template:

View file

@ -1,7 +1,9 @@
---
- name: Create init.vim
block:
- shell: mkdir -p ~/.config/nvim
- file:
path: ~/.config/nvim
state: directory
- template:
src: templates/init.vim.j2
dest: ~/.config/nvim/init.vim

View file

@ -1,6 +1,8 @@
---
- name: Create .tmux
shell: mkdir -p ~/.tmux
file:
path: ~/.tmux
state: directory
- name: Clone tpm
git:

View file

@ -1,9 +1,12 @@
---
- name: Create directories for VSCode
block:
- shell: mkdir -p ~/.local/bin
- shell: mkdir -p ~/.local/share
- shell: mkdir -p "$HOME/.config/Code - Insiders/User"
file:
path: {{ item }}
state: directory
loop:
- ~/.local/bin
- ~/.local/share
- "$HOME/.config/Code - Insiders/User"
- name: Install VSCode script
template: