aboutsummaryrefslogtreecommitdiffstats
path: root/util/docker-compose/roles/machines/tasks/main.yml
blob: 7b4a9f18b9ea8c2f77a7973af9dba5b688bf683c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- 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