From 8d08d220dabe65f6dd5ee690672655ba9c134494 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 6 Aug 2019 08:33:22 +0100 Subject: [PATCH] Ensure vim backup directory exists --- states/vim/init.sls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/states/vim/init.sls b/states/vim/init.sls index 7f1ffa5..004cadf 100644 --- a/states/vim/init.sls +++ b/states/vim/init.sls @@ -29,3 +29,11 @@ plugins install: plugins update: cmd.run: - name: vim +PluginUpdate +qall + +packup dir: + file.directory: + - name: {{ grains['homedir'] }}/.vim/backup + - user: {{ grains['user'] }} + - group: {{ grains['user'] }} + - mode: 750 + - makedirs: True -- 2.46.2