These custom ansible module were written in order to solve specific problems in the automated deployments in either the development or production environments.
If a module passed all checks and the official pull request has been accepted, it can be downloaded as part of a collection e.g. "community.windows" using ansible-galaxy
ansible-galaxy collection install community.windowsIf a module is fully functional, but not yet qualified for an official pull request, the deployment must be done manually.
If a module is not yet fully qualified for an official pull request to the "ansible-galaxy", due to either missing code quality (ansible sanity checks), integration tests or a missing support for "check_mode", it must be deployed
Therefore a pull request could not be done up until now and the module needs to be deployed locally, using this procedure.
- Verify that the path is correct using the ansible-config dump
ansible-config dump | grep DEFAULT_MODULE_PATH- Create the local module path for your user
mkdir -p "/home/$USER/.ansible/plugins/modules"- Clone the git repository
- Copy the module to the local module path
cd /tmp
git clone "[email protected]:FuxMak/win_gpo_settings.git"
cp /tmp/win_gpo_settings "/home/$USER/.ansible/plugins/modules"The asterisk needs to be outside the quotes, otherwise the copy command does not work with the wildcard.
Ansible (RedHat) really forces a strict development and testing procedure towards the community. Before and during the development of the module, please first of all take a look at the exisiting structure inside the repository and at the official development documentation.