Ansible BackendΒΆ

Note

This backend is shipped externally at jiav-backend-ansible.

Warning

This is a risky backend since it allows users to run arbitrary code.
Use it at your own risk.

Execute Ansible playbook.

ansible-runner is used to execute ansible playbooks.

Ansible backend requires the user to have Ansible configured.

Attributes

Property

Descrption

playbook

Ansible playbook (formatted in YAML). [required]

ansible_binary

Path to Ansible binary.

Examples

Execute a single task on localhost:

jiav:
  verification_status: "Done"
  verification_steps:
    - name: ansible test
      backend: ansible
      playbook:
        - hosts: localhost
          tasks:
            - shell: which openstack