Skip to content

Commit da95780

Browse files
author
KoLiBer
committed
feat: remove inventory directory on successful playbook
1 parent b197938 commit da95780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/playbook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ ${key}:
103103
%{ endfor ~}
104104
EOF
105105

106-
ansible-playbook -i $ROOT/inventory.yml ${extra_args} ${playbook}
106+
ansible-playbook -i $ROOT/inventory.yml ${extra_args} ${playbook} && rm -Rf $ROOT
107107
%{ endif ~}

0 commit comments

Comments
 (0)