File: _container_finalize.yml

package info (click to toggle)
python-mitogen 0.3.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,708 kB
  • sloc: python: 24,457; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (20 lines) | stat: -rw-r--r-- 506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- name: Prepare images
  hosts: all
  strategy: mitogen_free
  gather_facts: false
  tasks:
    - name: Commit containers
      command: >
        docker commit
        --change 'EXPOSE 22'
        --change 'CMD ["/usr/sbin/sshd", "-D"]'
        {{ inventory_hostname }}
        {{ container_image_name }}
      changed_when: true
      delegate_to: localhost

    - name: Stop containers
      command: >
        docker rm -f {{ inventory_hostname }}
      changed_when: true
      delegate_to: localhost