]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: replace sudo by become 1578/head
authorKefu Chai <kchai@redhat.com>
Tue, 2 Jun 2020 06:35:00 +0000 (14:35 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Jun 2020 06:40:00 +0000 (14:40 +0800)
sudo has be deprecated since Ansible 1.9 [0] and was removed in 2.9 [1], let's
use "become" instead.

---
[0]
https://github.com/ansible/ansible/blob/stable-2.0/CHANGELOG.md#19-dancing-in-the-street---mar-25-2015
[1] https://github.com/ansible/ansible/blob/stable-2.9/changelogs/CHANGELOG-v2.9.rst

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-deploy-pull-requests/setup/playbooks/setup.yml

index f45d5f90f8894236fbaf5241a88d7088360b480a..9a8a11d84d0d91f0a6cf6e870dc1f9e06db20f51 100644 (file)
@@ -2,7 +2,7 @@
 
 - hosts: localhost
   user: jenkins-build
-  sudo: True
+  become: yes
 
   tasks:
      - include: tasks/ubuntu.yml