summaryrefslogblamecommitdiffstats
path: root/docker-playbook.yaml
blob: 6235624e26a9f5094037bde9ebfcd3cca97623ee (plain) (tree)






































                                                             
---
- name: Create a front container to be provisioned later
  tags: docker-front
  hosts: localhost
  tasks:
    - name: create docker container
      docker_container:
        name: emacsconf-front
        image: python:3-buster
        command: ["sleep", "1d"]
        pull: yes
        published_ports:
          - "28080:80"
          - "2022:22"
        
- name: Provision the emacsconf-front container created above
  tags: docker-front
  hosts: emacsconf-front
  roles:
    - wiki

- name: Create a pad container to be provisioned later
  tags: pad
  hosts: localhost
  tasks:
    - name: create docker container
      docker_container:
        name: emacsconf-pad
        image: python:3-buster
        command: ["sleep", "1d"]
        pull: yes
        published_ports:
          - "9001:9001"
        
- name: Provision the pad container created above
  tags: pad
  hosts: emacsconf-pad
  roles:
    - pad