---
- name: Converge
  hosts: all
  become: yes
  gather_facts: yes

  roles:
    - ansible-role-docker

  tasks:
    - name: Create a container
      docker_container:
        name: openssh
        image: robertdebock/docker-centos-openssh
        ports:
          - "2222:22"
      when:
        - ansible_virtualization_type != "docker"
