From: Lorin Hochstein Date: Sat, 24 Sep 2016 05:56:01 +0000 (-0700) Subject: s/sudo/become X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=771715fabc0d45b1244f50c8ebe95bc03fe785d4;p=ansiblebook.git s/sudo/become --- diff --git a/ch04/playbooks/install-package.yml b/ch04/playbooks/install-package.yml index 8e70309..74d2575 100644 --- a/ch04/playbooks/install-package.yml +++ b/ch04/playbooks/install-package.yml @@ -2,7 +2,7 @@ - name: show return value of apt module hosts: server1 gather_facts: False - sudo: True + become: True tasks: - name: install nginx apt: name=nginx diff --git a/ch04/playbooks/update-cache.yml b/ch04/playbooks/update-cache.yml index 34d4be1..c5384c2 100644 --- a/ch04/playbooks/update-cache.yml +++ b/ch04/playbooks/update-cache.yml @@ -2,7 +2,7 @@ - name: show return value of apt module hosts: server1 gather_facts: False - sudo: True + become: True tasks: - name: install nginx apt: update_cache=yes