summaryrefslogtreecommitdiffstats
path: root/debian/ansible.postinst
blob: f292fc88e8e3678b5050731ac92ab6008cf9a1c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

#DEBHELPER#

dpkg-maintscript-helper rm_conffile \
  /etc/ansible/ansible.cfg 2.10.4~ ansible -- "$@"

dpkg-maintscript-helper rm_conffile \
  /etc/ansible/hosts 2.10.4~ ansible -- "$@"

if [ -d /etc/ansible ]; then
  rmdir --ignore-fail-on-non-empty /etc/ansible 2> /dev/null
fi

exit 0