Skip to content

How to import playbook in the ansible-based operator? #7006

@watson91

Description

@watson91

How can I import the playbook or is it possible to do that?

My codes are posted below

  • name: Step 1 for adding
    import_playbook: "{{ role_path }}/../playbooks/facts.yml"
    vars:
    ansible_inventory: "{{ comma-seperated node list }}"
    ansible_ssh_private_key_file: "/etc/ssh/id_rsa"

Unfortunately, I failed to call it. The errors occur with the complete info below.
[localhost]: FAILED! => {
"changed": false,
"module_stderr": "",
"module_stdout": "",
"msg": "MODULE FAILURE/See stdout/stderr for the exact error",
"rc": 0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions