You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/image_prep/_container_finalize.yml

19 lines
482 B
YAML

- 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