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
 
3
 
4
 - hosts: all
4
 - hosts: all
5
   user: deploy
5
   user: deploy
6
-  sudo: True
6
+  become: True
7
+  become_method: sudo
7
   gather_facts: True
8
   gather_facts: True
8
   vars_files:
9
   vars_files:
9
     - vars/defaults.yml
10
     - vars/defaults.yml

Loading…
Cancel
Save