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
}