include default playbooks
Add playbooks to /etc/ansible/playbooks with the variable defaulting to set the ANSIBLE_PLAYBOOK_DIR environmental variable to point to this location, with the intent if the variable isn't updated that the playbooks path will default to an image containing one. the main purpose of this is so that included roles can be called/run with a requirement to only specify variables for the play.
links / References
-
https://docs.ansible.com/ansible/latest/reference_appendices/config.html
-
nofusscomputing/ops!14
Tasks
-
image has default env var ANSIBLE_PLAYBOOK_DIRset to/etc/ansible/playbooks( ansible_playbooks#1 requires ansible_playbooks!1 (merged)) -
Documentation updated to include the var and that it can be overwritten, also explain /workdirdefaults for other config.
Edited by Jon