--- - name: Docker Install include_tasks: docker_install.yml when: config_flavor == "install" - name: Docker Stop & Destroy include_tasks: docker_destroy.yml when: config_flavor == "destroy" - name: Docker Transfer Compose to Remote Host include_tasks: docker_copy.yml when: config_flavor == "copy" ##### # You need to set up each docker playbook to a config flavor or look for an input module and assign config_flavor to it ######