docker_purge with several labels in filter

27 views
Skip to first unread message

bigfootspi

unread,
Feb 27, 2024, 9:59:41 AM2/27/24
to Ansible Project

Hello everybody.

I am trying to launch a container purge command by filtering on several labels in my container.

my command does not work.

filters seem poorly formatted

Have you an idea ?

  docker_prune:
    containers: yes
    images: yes
    debug: true
    containers_filters:
      label: [
        "module.tri={{ trigramme_module }}",
        "module.env={{ environnement }}",
        "application.part={{ part | default( trigramme_module ) }}"
      ]
    images_filters:
      dangling: false
Reply all
Reply to author
Forward
0 new messages