playbook.yaml.j2 517 B

123456789101112131415161718192021222324
  1. ---
  2. - name: {{ playbook_name }}
  3. hosts: {{ target_hosts }}
  4. {% if become %}
  5. become: true
  6. {% endif %}
  7. {% if options_enabled and not gather_facts %}
  8. gather_facts: false
  9. {% endif %}
  10. {% if secrets_enabled %}
  11. vars_files:
  12. - {{ secrets_file }}
  13. {% endif %}
  14. tasks:
  15. - name: Prune non-dangling images
  16. community.docker.docker_prune:
  17. containers: false
  18. images: true
  19. images_filters:
  20. dangling: false
  21. networks: false
  22. volumes: false
  23. builder_cache: false