diff --git a/defaults/main.yml b/defaults/main.yml index ee732d1..7eb0f03 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: [] diff --git a/tasks/build.yml b/tasks/build.yml index e8e50a2..ed56fe0 100644 --- a/tasks/build.yml +++ b/tasks/build.yml @@ -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 diff --git a/tasks/running.yml b/tasks/running.yml index 7057e3f..3187258 100644 --- a/tasks/running.yml +++ b/tasks/running.yml @@ -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"