Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (21 sloc) 497 Bytes
---
- name: Bring up docker containers
hosts: localhost
gather_facts: false
vars:
inventory:
- name: iptables_host_1
image: "chrismeyers/centos6"
roles:
- role: provision_docker
provision_docker_inventory: "{{ inventory }}"
- name: Run iptables Tests
hosts: docker_containers
vars:
ports: [22, 1025, 1026]
roles:
- role: iptables
iptables_allowed_tcp_ports: "{{ ports }}"
tasks:
- name: Test ports
command: 'echo "hello world"'