mirror of
https://github.com/krislamo/pup-tests
synced 2024-11-14 02:20:35 +00:00
19 lines
386 B
YAML
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
|
||
|
|