Directory manipulation

Hey,

in my playbook {{ playbook_dir }} is /etc/proftpd , it is possible to add something to playbook_dir which will output parent directory ? Something like {{ playbook_dir | …/ }} , is there a way to do something similar with ansible ?

have you tried 'dirname'?