---
- hosts: staging
remote_user: root
tasks:
- name: Install requirements
package:
name: "{{item}}"
state: latest
with_items:
- docker
- python-docker-py
- python-urllib3
- name: Build a the staging image
docker_image:
state: present
path: ../../docker/myapp_staging
name: myapp_staging
tag: latest