瀏覽代碼

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

fengor 8 年之前
父節點
當前提交
456458b127
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      site.yml

+ 2
- 1
site.yml 查看文件

@@ -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…
取消
儲存