File: _container_create.yml

package info (click to toggle)
python-mitogen 0.3.0~rc1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,240 kB
  • sloc: python: 19,899; sh: 91; perl: 19; ansic: 18; makefile: 13
file content (20 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- name: Start containers
  hosts: all
  strategy: mitogen_free
  gather_facts: false
  tasks:
    - name: Fetch container images
      docker_image:
        name: "{{ docker_base }}"
      delegate_to: localhost

    - name: Start containers
      docker_container:
        name: "{{ inventory_hostname }}"
        image: "{{ docker_base }}"
        command: /bin/bash
        hostname: "mitogen-{{ inventory_hostname }}"
        detach: true
        interactive: true
        tty: true
      delegate_to: localhost