ansible/playbook/orochi/tasks/helloworld.yml

30 lines
588 B
YAML
Raw Permalink Normal View History

2023-09-25 08:40:20 +00:00
# 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 }}]"