2 つ以上のラベルが付いていないすべての docker イメージを削除したいと思います。Ansible 2.8 以降、docker_prune コマンドがあり、次のように images_filter オプションと組み合わせて使用したいと考えています。
docker_prune:
debug: yes
containers: no
images: yes
images_filters:
label: not label1 label2
dangling: false
docker pruneのドキュメントには、簡単な方法があります。
docker image prune --filter="label!=label1!=label2"
コマンドの label オプションを無効にする方法はありますか? または、ラベル リストを使用して docker_prune をループする唯一の方法はありますか?