1
0
mirror of https://github.com/krislamo/pup-tests synced 2024-11-13 02:00:34 +00:00
pup-tests/setup/roles/client/tasks/main.yml
Kris Lamoureux 03bacd745b
Modified to work with VirtualBox
Development moved to VirtualBox due to work's custom vagrant box
only supporting the VirtualBox provider. Development may eventually
end up back on libvirt. Version numbers were updated, some broken
code was removed and more instructions were added on the readme.
2019-02-07 13:26:23 -05:00

19 lines
386 B
YAML

- name: Install Puppet Agent
apt: name=puppet state=present
register: agent_install
- name: Deploy puppet.conf
template:
src: puppet.conf.j2
dest: /etc/puppet/puppet.conf
- name: Start Puppet
service: name=puppet state=started
- name: Request Puppet Master
command: puppet agent -t
register: send_csr
failed_when: send_csr.rc > 1
when: agent_install.changed