Last active
October 19, 2015 14:36
-
-
Save czunker/32d07ced04928d89d527 to your computer and use it in GitHub Desktop.
Call Puppet Agent inside Ansible playbook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Start puppet agent | |
sudo: yes | |
shell: /usr/bin/puppet agent --verbose --test | |
register: puppet_agent_result | |
changed_when: puppet_agent_result.rc|int == 2 | |
failed_when: puppet_agent_result.rc|int != 2 and puppet_agent_result.rc|int != 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment