ansible/playbook/orochi/tasks/helloworld.yml
2023-09-25 10:40:20 +02:00

30 lines
588 B
YAML

# 2023-09-25
# Tasks: helloworld
---
- ansible.builtin.include_vars: ../vars/helloworld.yml
- name: Run hello-world
community.docker.docker_container:
cleanup: true
keep_volumes: false
output_logs: true
pull: false
name: hello-world
image: hello-world:latest
hostname: hello-world
auto_remove: false
detach: false
register: container_output
tags:
- tasks
- orochi
- testing
- docker
- container
- helloworld
- name: Display hello-world output
debug:
msg: "Output:[{{ container_output.container.Output | trim }}]"