1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-08 01:04:15 +00:00
community.general/lib
Rene Moser 4238950a58 puppet: make arg puppetmaster optional
puppetmaster was used to determine if `agent` or `apply` should be used. But puppetmaster is not required by puppet per default. Puppet may have a config or could find out by itself (...) where the puppet master is.

It changed the code so we only use `apply` if a manifest was passed, otherwise we use `agent`.

This also fixes the example, which did not work the way without this change.

~~~
# Run puppet agent and fail if anything goes wrong
- puppet
~~~
2016-12-08 11:32:49 -05:00
..
ansible puppet: make arg puppetmaster optional 2016-12-08 11:32:49 -05:00