From bf04a0fe0e5a320c4f16652e33b6aa66e2f481b9 Mon Sep 17 00:00:00 2001 From: Daniel Petty Date: Thu, 18 Feb 2016 08:00:27 -0700 Subject: [PATCH] replaced sudo with become --- cloud/docker/docker_image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/docker/docker_image.py b/cloud/docker/docker_image.py index a2d0143e284..cf839a3d08e 100644 --- a/cloud/docker/docker_image.py +++ b/cloud/docker/docker_image.py @@ -129,7 +129,7 @@ EXAMPLES = ''' Build docker image if required. Path should contains Dockerfile to build image: - hosts: web - sudo: yes + become: yes tasks: - name: check or build image docker_image: path="/path/to/build/dir" name="my/app" state=present @@ -137,7 +137,7 @@ Build docker image if required. Path should contains Dockerfile to build image: Build new version of image: - hosts: web - sudo: yes + become: yes tasks: - name: check or build image docker_image: path="/path/to/build/dir" name="my/app" state=build @@ -145,7 +145,7 @@ Build new version of image: Remove image from local docker storage: - hosts: web - sudo: yes + become: yes tasks: - name: remove image docker_image: name="my/app" state=absent