mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-14 11:50:06 +00:00
22 lines
457 B
YAML
22 lines
457 B
YAML
---
|
|
- name: Clone blog repository
|
|
git:
|
|
repo: "https://github.com/CPunch/openpunk.git"
|
|
dest: "/var/www/{{ domain }}"
|
|
|
|
- name: Build blog
|
|
command:
|
|
cmd: hugo
|
|
chdir: "/var/www/{{ domain }}"
|
|
|
|
- name: Install updateBlog script
|
|
template:
|
|
src: templates/blog/updateBlog
|
|
dest: /usr/local/bin/updateBlog
|
|
mode: u+rwx
|
|
|
|
- name: Setup blog cron job
|
|
cron:
|
|
name: Build blog every hour
|
|
minute: 0
|
|
job: /usr/local/bin/updateBlog |