aci.yml 785 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. - name: ACI | Check aci-gw container image
  3. command: "{{ openshift_container_cli }} images -q contiv/aci-gw"
  4. register: docker_aci_image
  5. - name: ACI | Pull aci-gw container
  6. command: "{{ openshift_container_cli }} pull contiv/aci-gw"
  7. when: docker_aci_image.stdout_lines == []
  8. - name: ACI | Copy shell script used by aci-gw service
  9. template:
  10. src: aci_gw.j2
  11. dest: "{{ contiv_bin_dir }}/aci_gw.sh"
  12. mode: u=rwx,g=rx,o=rx
  13. - name: ACI | Copy systemd units for aci-gw
  14. template:
  15. src: aci-gw.service
  16. dest: /etc/systemd/system/aci-gw.service
  17. notify: reload systemd
  18. - name: ACI | Enable aci-gw service
  19. service:
  20. name: aci-gw
  21. enabled: yes
  22. - name: ACI | Start aci-gw service
  23. service:
  24. name: aci-gw
  25. state: started
  26. register: aci-gw_started