An helper to avoid keeping ansible.cfg
in playbook repos.
From this repo
make install
will installansible-cfg.mk
,ansible-cfg.jsonnet
andansible-cfg.yml
in/usr/local/bin
From any pristine ansible playbook repo
-
ansible-cfg.mk $config
will invokeansible-cfg.jsonnet
to create various ansible configs inansible-cfg
and linkansible.cfg
to$config
(default tofull
) -
ansible-cfg.yml -e dir=$(pwd)
will create local dirs needed by ansible config and populate.gitignore
and/or.git/info/exclude
-
ansible-cfg.mk exclude
is a shorthand foransible-cfg.yml -e dir=$(pwd)
-
ansible-cfg
is a shorthand foransible-cfg.mk