Browse Source

sudo directive was deprecated in ansible 1.9.x. Changed the entry to become directive to fix deprecation warnings.

fengor 8 years ago
parent
commit
456458b127
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      site.yml

+ 2
- 1
site.yml View File

@@ -3,7 +3,8 @@
3 3
 
4 4
 - hosts: all
5 5
   user: deploy
6
-  sudo: True
6
+  become: True
7
+  become_method: sudo
7 8
   gather_facts: True
8 9
   vars_files:
9 10
     - vars/defaults.yml

Loading…
Cancel
Save