We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d22ebe commit 1c5dbd5Copy full SHA for 1c5dbd5
provision/ansible/roles/user/tasks/rights.yml
@@ -1,17 +1,12 @@
1
-- name: Fix filesystem rights (/usr/local/bin)
+- name: Fix filesystem rights
2
file:
3
- path: /usr/local/bin/
+ path: '{{ item.path }}'
4
state: directory
5
- mode: 0755
+ mode: 0775
6
owner: 'vagrant'
7
group: 'vagrant'
8
- recurse: 'yes'
9
-
10
-- name: Fix filesystem rights (/home/vagrant)
11
- file:
12
- path: /home/vagrant/.config/
13
- state: directory
14
15
- owner: 'vagrant'
16
- group: 'vagrant'
17
+ recurse: '{{ item.recurse }}'
+ with_items:
+ - { path: '/home/vagrant/.config/', recurse: 'yes' }
+ - { path: '/usr/local/bin/', recurse: 'yes' }
+ - { path: '/var/www/', recurse: 'no' }
0 commit comments