--- - name: docker cp switch_machines_file shell: | docker cp "{{ docker_compose_dir }}/machine" \ compass-deck:/tmp/machine tags: - redploy - name: inject switches and mac addresses shell: | docker exec compass-deck bash -c \ "/opt/compass/bin/manage_db.py set_machine \ --machine_file /tmp/machine" tags: - redploy