Hello,
I have a bunch of playbooks where "suddenly" while setting up a new
machine it turned out, that pip is not working correctly anymore with
use_mirrors=yes (it is eating a lot of RAM and CPU goes to 100%). So I
had to append use_mirrors=no to all pip actions... that was not much
in my case, but I can imagine that in larger setups such a thing would
be annoying and not everybody wants to touch working playbooks for
just "fixing" a problem with default values...
Is there a way (if not consider this as a proposition) to globally
change or setup the default values for certain actions/commands/modules?
My Idea is like this:
in ansible.cfg put a line like this:
[defaults]
hostfile = hosts.ini
defaults = defaults.yml
may be its also worth of supporting a cmd-line option,
e.g. --defaults defaults.yml
where defaults.yml contains a subset of module/action options, e.g.
- ---
pip:
use_mirrors: no
best regards
Oliver