1
0
mirror of https://github.com/krislamo/pup-tests synced 2024-09-20 09:40:36 +00:00
pup-tests/setup/roles/server/tasks/main.yml
Kris Lamoureux e5a0d84b20 WordPress Installs
Sets up a very basic WordPress website on the puppet agent.
2019-01-16 14:40:35 -05:00

33 lines
746 B
YAML

- 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
- name: Wait for Webserver Key
wait_for:
path: /var/lib/puppet/ssl/ca/requests/webserver.pem
when: pup_install.changed
- name: Sign Webserver Key
command: puppet cert sign webserver
args:
removes: /var/lib/puppet/ssl/ca/requests/webserver.pem