Browse Source

Fixing encfs shell invocation for ansible 2 compatibility

Aleksandr Bogdanov 8 years ago
parent
commit
cdc0d3fb4e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      requirements.txt
  2. 1
    1
      roles/common/tasks/encfs.yml

+ 1
- 1
requirements.txt View File

@@ -1 +1 @@
1
-ansible>=1.9.3,<2
1
+ansible>=2.2

+ 1
- 1
roles/common/tasks/encfs.yml View File

@@ -21,7 +21,7 @@
21 21
   when: encfs_check.rc > 0
22 22
 
23 23
 - name: If /encrypted isn't empty, mount it (but only if /decrypted/test doesn't exist)
24
-  shell: printf "{{ encfs_password }}" | encfs /encrypted /decrypted --public --stdinpass creates="/decrypted/test"
24
+  shell: command="printf '{{ encfs_password }}' | encfs /encrypted /decrypted --public --stdinpass" creates="/decrypted/test"
25 25
   when: encfs_check.rc == 0
26 26
 
27 27
 - name: Set decrypted directory permissions

Loading…
Cancel
Save