Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 415 Bytes
- name: Build an image with the command module for a remote docker host
hosts: localhost
connection: local
- name: build the image
command: docker build -t built-by-ansible:ex2b ./site
- name: run the site in a docker container
name: site2b
image: "built-by-ansible:ex2b"
state: reloaded
publish_all_ports: yes
use_tls: encrypt