summaryrefslogblamecommitdiffstats
path: root/docker-playbook.yml
blob: c0524e95d3ae6425ba376e8a8f06ae10d8937279 (plain) (tree)
1
2
3
4
5
6
7
8
9
   
                 
                  



                             
                                                        
            





                                   
                                      
                                                                          

                        
                     












                                                      






                             

                                      
---
- name: Load vars
  hosts: localhost
  tags: always
  tasks:
    - include_vars:
        file: docker-vars.yml
- name: Create a front container to be provisioned later
  tags: wiki
  hosts: localhost
  tasks:
    - name: create docker container
      docker_container:
        name: emacsconf-front
        image: python:3-buster
        command: ["sleep", "infinity"]
        volumes: "{{ ikiwiki_git_source }}:{{ ikiwiki_git_source_mount }}"
        published_ports:
          - "28080:80"
          - "2222:22"
- 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: Load vars
  hosts: all
  tags: always
  tasks:
    - include_vars:
        file: docker-vars.yml
        
- name: Run common tasks
  import_playbook: common-playbook.yml