1
0
mirror of https://github.com/krislamo/pup-tests synced 2024-11-14 02:20:35 +00:00
pup-tests/setup/roles/server/tasks/main.yml

23 lines
485 B
YAML
Raw Normal View History

- name: Install Puppet Master
apt: name=puppetmaster state=present
register: pup_install
- name: Install NTP
apt: name=ntp state=present
register: ntp_status
- name: Restart NTP
service: name=ntp state=restarted
when: ntp_status.changed
- name: Install R10K
apt: name=r10k state=present
register: r10k_install
- name: Install Puppet Modules
shell:
cmd: r10k puppetfile install
chdir: /etc/puppet/code/environments/production
when: r10k_install.changed