File: _container_finalize.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 (18 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- name: Prepare images
  hosts: all
  strategy: mitogen_free
  gather_facts: true
  tasks:
    - name: Commit containers
      command: >
        docker commit
        --change 'EXPOSE 22'
        --change 'CMD ["/usr/sbin/sshd", "-D"]'
        {{ inventory_hostname }}
        public.ecr.aws/n5z0e8q9/{{ inventory_hostname }}-test
      delegate_to: localhost

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