Source
yaml
id: ansible-local-message
namespace: blueprints
tasks:
- id: ansible
type: io.kestra.plugin.ansible.cli.AnsibleCLI
inputFiles:
inventory.ini: |
[local_servers]
localhost1 ansible_connection=local
playbook.yml: |
---
- name: Hello World Playbook
hosts: local_servers
tasks:
- name: Print Hello World
debug:
msg: "Hello World!"
commands:
- ansible-playbook -i inventory.ini -c local playbook.yml
About this blueprint
CLI DevOps
This flow runs a simple Ansible playbook that prints "Hello World!" through a local connection.
More Related Blueprints