Hello,
Ansible has a variable "{{ playbook_dir }}" that gives the playbook
directory path.
Currently, I am doing in this way to get the playbook directory in the
hive(python source code) task, but is there any other way to directly get
the "{{ playbook_dir }}" path without passing as an option explicitly?
---
- name: hive playbook
hosts: yum_hosts
tasks:
- name: execute a DDL statement from a HQL file.
hive:
playbook_path: "{{ playbook_dir }}"
register: result_execute
- name: dump
debug:
msg: '{{ result_execute }}'
Thank you
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f01346bd-3f30-4aab-a7c8-17feb35451e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.