2017-08-16
A local is lekker, all-in playbook I use to publish this site.
---
- hosts: localhost
connection: local
gather_facts: false
tasks:
- name: add the host
add_host: name=fudless.com groups=lehost ansible_user=root
- hosts: lehost
gather_facts: false
tasks:
- shell: cd git/fudless.com;git pull;hugo;cp -rv public/* /var/www/fudless.com;systemctl reload nginx
Yes, I am that lazy…