- if fact('lsbdistcodename') == 'stretch' || fact('lsbdistcodename') == 'bionic'
- # Ensure dirmngr package is installed
- apply_manifest(refresh_check_for_dirmngr_pp, acceptable_exit_codes: [0, 2])
- # Export environment variable to disable apt-key warning when using grep
- shell('export APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1')
- end