diff --git a/playbooks/cleanup.yml b/playbooks/cleanup.yml new file mode 100755 index 0000000..086c01c --- /dev/null +++ b/playbooks/cleanup.yml @@ -0,0 +1,12 @@ +#!/usr/bin/env ansible-playbook +# vim:ft=ansible: +--- +# Preambulatory system configuration +- hosts: all + tasks: + - name: collect service facts + service_facts: + tags: [ always ] + - name: touch ansible timestamp file + file: path=/var/lib/ansible-last-run state=touch mode='0644' + changed_when: no diff --git a/site.yml b/site.yml index 8e343cb..ebcc944 100755 --- a/site.yml +++ b/site.yml @@ -34,3 +34,5 @@ # Housekeeping tags for one-off tasks - import_playbook: playbooks/tags_docker-prune.yml - import_playbook: playbooks/tags_autoreboot.yml + # Last little bit of cleanup +- import_playbook: playbooks/cleanup.yml