aci.yml 778 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: ACI | Check aci-gw container image
  3. command: "docker inspect contiv/aci-gw"
  4. register: docker_aci_inspect_result
  5. ignore_errors: yes
  6. - name: ACI | Pull aci-gw container
  7. command: "docker pull contiv/aci-gw"
  8. when: "'No such image' in docker_aci_inspect_result.stderr"
  9. - name: ACI | Copy shell script used by aci-gw service
  10. template:
  11. src: aci_gw.j2
  12. dest: "{{ bin_dir }}/aci_gw.sh"
  13. mode: u=rwx,g=rx,o=rx
  14. - name: ACI | Copy systemd units for aci-gw
  15. template:
  16. src: aci-gw.service
  17. dest: /etc/systemd/system/aci-gw.service
  18. notify: reload systemd
  19. - name: ACI | Enable aci-gw service
  20. service:
  21. name: aci-gw
  22. enabled: yes
  23. - name: ACI | Start aci-gw service
  24. service:
  25. name: aci-gw
  26. state: started
  27. register: aci-gw_started