From fa19513ed476198b8225d2a4a48157c02b3ee970 Mon Sep 17 00:00:00 2001
From: Pierre Riteau <pierre@stackhpc.com>
Date: Fri, 10 Jul 2020 17:42:58 +0200
Subject: [PATCH] Update hook link instructions to use relative path

The original instructions used an absolute path for the symbolic link,
which would not be valid if the kayobe-config repository was cloned in a
different location.

Change-Id: Id595a12845f445203993fc6ed567e7f7f393742f
---
 doc/source/custom-ansible-playbooks.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/source/custom-ansible-playbooks.rst b/doc/source/custom-ansible-playbooks.rst
index d409a8276..bb1e25fce 100644
--- a/doc/source/custom-ansible-playbooks.rst
+++ b/doc/source/custom-ansible-playbooks.rst
@@ -158,9 +158,9 @@ ordering.
 For example to run the playbook ``foo.yml`` after ``kayobe overcloud host configure``,
 you could do the following::
 
-    (kayobe) $ mkdir -p $KAYOBE_CONFIG_PATH/hooks/overcloud-host-configure/post.d
-    (kayobe) $ ln -s  $KAYOBE_CONFIG_PATH/ansible/foo.yml \
-    $KAYOBE_CONFIG_PATH/hooks/overcloud-host-configure/post.d/10-foo.yml
+    (kayobe) $ mkdir -p ${KAYOBE_CONFIG_PATH}/hooks/overcloud-host-configure/post.d
+    (kayobe) $ cd ${KAYOBE_CONFIG_PATH}/hooks/overcloud-host-configure/post.d
+    (kayobe) $ ln -s ../../../ansible/foo.yml 10-foo.yml
 
 The sequence number for the ``foo.yml`` playbook is ``10``.