1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# platform = multi_platform_all
# reboot = false
# strategy = disable
# complexity = low
# disruption = low
# CAUTION: This remediation script will remove {{{ PKGNAME }}}
# from the system, and may remove any packages
# that depend on {{{ PKGNAME }}}. Execute this
# remediation AFTER testing on a non-production
# system!
{{{ bash_instantiate_variables(VARIABLE) }}}
{{% if OPERATION == "pattern match" %}}
if ! [[ "{{{ VALUE }}}" =~ ${{{ VARIABLE }}} ]]; then
{{{ bash_package_remove(package=PKGNAME) }}}
fi
{{% else %}}
if [ ${{{ VARIABLE }}} != {{{ VALUE }}} ]; then
{{{ bash_package_remove(package=PKGNAME) }}}
fi
{{% endif %}}
|