File: _container_create.yml

package info (click to toggle)
python-mitogen 0.3.25~a2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,220 kB
  • sloc: python: 21,989; sh: 183; makefile: 74; perl: 19; ansic: 18
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