Blueprints

Run a simple Ansible playbook

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.

Ansible CLI

More Related Blueprints

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra