Merge pull request #3062 from mixmatch/patch-1

replaced sudo with become
This commit is contained in:
Brian Coca 2016-02-18 07:07:22 -08:00
commit 4b093d7d7f

View file

@ -129,7 +129,7 @@ EXAMPLES = '''
Build docker image if required. Path should contains Dockerfile to build image: Build docker image if required. Path should contains Dockerfile to build image:
- hosts: web - hosts: web
sudo: yes become: yes
tasks: tasks:
- name: check or build image - name: check or build image
docker_image: path="/path/to/build/dir" name="my/app" state=present 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: Build new version of image:
- hosts: web - hosts: web
sudo: yes become: yes
tasks: tasks:
- name: check or build image - name: check or build image
docker_image: path="/path/to/build/dir" name="my/app" state=build 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: Remove image from local docker storage:
- hosts: web - hosts: web
sudo: yes become: yes
tasks: tasks:
- name: remove image - name: remove image
docker_image: name="my/app" state=absent docker_image: name="my/app" state=absent