/dev/null inventory

16 August 2017 | 1 min read

no inventory, no problem

A local is lekker, all-in playbook I use to publish this site.

- hosts: localhost
  connection: local
  gather_facts: false
    - name: add the host
      add_host: name=fudless.com groups=lehost ansible_user=root

- hosts: lehost
  gather_facts: false
    - shell: cd git/fudless.com;git pull;hugo;cp -rv public/* /var/www/fudless.com;systemctl reload nginx

Yes, I am that lazy...