hook.sh.j2 339 B

1234567891011121314151617
  1. #!/bin/sh
  2. {% if ansible_controlled is defined and ansible_controlled != "" %}
  3. #
  4. # {{ ansible_controlled }}
  5. #
  6. {% endif %}
  7. hooks_dir="$(dirname "$(readlink -f "${0}")")/hooks"
  8. if [ -d "${hooks_dir}" ]; then
  9. find "${hooks_dir}" -type f -executable | \
  10. while read script ; do
  11. "${script}" "$@"
  12. done
  13. fi
  14. exit 0