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 - name: Create directories for configuration
shell: mkdir ~/.ghc file:
path: ~/.ghc
state: directory
- name: Install ghci.conf - name: Install ghci.conf
template: template:

View file

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

View file

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

View file

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