If you want to avoid using certain modules, you can blacklist them to prevent Ansible from loading them. To blacklist plugins, create a yaml configuration file. The default location for this file is
/etc/ansible/plugin_filters.yml, or you can select a different path for the blacklist file using the PLUGIN_FILTERS_CFG setting in the
defaults section of your ansible.cfg. Here is an example blacklist file:
--- filter_version: '1.0' module_blacklist: # Deprecated - docker # We only allow pip, not easy_install - easy_install
The file contains two fields:
You cannot blacklist the
stat module, as it is required for Ansible to run.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.