community / community.general / 1.3.14 / module / puppet Runs puppet Authors: Monty Taylor (@emonty)community.general.puppet (1.3.14) — module
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
Runs I(puppet) agent or apply in a reliable manner.
- name: Run puppet agent and fail if anything goes wrong community.general.puppet:
- name: Run puppet and timeout in 5 minutes community.general.puppet: timeout: 5m
- name: Run puppet using a different environment community.general.puppet: environment: testing
- name: Run puppet using a specific certname community.general.puppet: certname: agent01.example.com
- name: Run puppet using a specific piece of Puppet code. Has no effect with a puppetmaster community.general.puppet: execute: include ::mymodule
- name: Run puppet using a specific tags community.general.puppet: tags: - update - nginx
- name: Run puppet agent in noop mode community.general.puppet: noop: yes
- name: Run a manifest with debug, log to both syslog and stdout, specify module path community.general.puppet: modulepath: /etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules logdest: all manifest: /var/lib/example/puppet_step_config.pp
noop: description: - Override puppet.conf noop mode. - When C(yes), run Puppet agent with C(--noop) switch set. - When C(no), run Puppet agent with C(--no-noop) switch set. - When unset (default), use default or puppet.conf value if defined. type: bool tags: description: - A list of puppet tags to be used. elements: str type: list debug: default: false description: - Enable full debugging. type: bool facts: description: - A dict of values to pass in as persistent external facter facts. type: dict execute: description: - Execute a specific piece of Puppet code. - It has no effect with a puppetmaster. type: str logdest: choices: - all - stdout - syslog default: stdout description: - Where the puppet logs should go, if puppet apply is being used. - C(all) will go to both C(stdout) and C(syslog). type: str timeout: default: 30m description: - How long to wait for I(puppet) to finish. type: str verbose: default: false description: - Print extra information. type: bool certname: description: - The name to use when handling certificates. type: str manifest: description: - Path to the manifest file to run puppet apply on. type: str summarize: default: false description: - Whether to print a transaction summary. type: bool modulepath: description: - Path to an alternate location for puppet modules. type: str environment: description: - Puppet environment to be used. type: str puppetmaster: description: - The hostname of the puppetmaster to contact. type: str facter_basename: default: ansible description: - Basename of the facter output file. type: str use_srv_records: description: - Toggles use_srv_records flag type: bool