Commit Graph

2 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 7422a0941b Move config_template to plugins/action
Unlike to the modules, ansible-galaxy tool does not respect symlinks,
which results in collection brokeness after it installation as plugin
itself is just missing there.
In the meanwhile, symlinks are respected by regular git clone which
is used for regular module retrievment.

Change-Id: I747b217e6b0706c05e5fae98bc5b89be3cbb5930
2021-11-23 20:37:39 +02:00
Logan V a5c9d97e18 Allow config_template to be loaded as a role
Currently when this repo loaded as a role instead of copied to
plugins paths, config_template tasks fail because:
FAILED! => {"msg": "module (config_template) is missing interpreter line"}

This is because ansible searches for action plugins in the action_plugins/
path of roles and plays instead of action/. See
https://docs.ansible.com/ansible/2.5/plugins/action.html#enabling-action-plugins
for information on this.

By simply symlinking action_plugins -> action we can make this work
in either scenario.

Change-Id: I59625e358e220b83d4a2580ac5f99bc11751ebdd
2018-06-17 14:36:48 -05:00