Allow profile selection by setting docker_profiles

This commit is contained in:
Tobias Manske 2023-06-05 22:20:18 +02:00
parent 68608a15a0
commit f7eb4fa46d
Signed by: tobias
GPG Key ID: 9164B527694A0709
3 changed files with 5 additions and 0 deletions

View File

@ -5,3 +5,4 @@ compose_dir: /home/core/compose
state: present # or running, build, absent
execute: smart # or always or never
disable_template: false
docker_profiles: []

View File

@ -10,4 +10,7 @@
recreate: smart
build: true
remove_orphans: true
profiles: docker_profiles
when: (compose_files.changed and execute == "smart") or execute == "always"
# vim: ft=yaml.ansible

View File

@ -10,5 +10,6 @@
restarted: true
recreate: smart
build: false
profiles: docker_profiles
remove_orphans: true
when: (compose_files.changed and execute == "smart") or execute == "always"