You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
456B

  1. ---
  2. - name: Install coturn
  3. apt:
  4. name: "{{ packages }}"
  5. vars:
  6. packages:
  7. - coturn
  8. - name: Set template
  9. template:
  10. src: turnserver.conf.j2
  11. dest: /etc/turnserver.conf
  12. owner: root
  13. group: root
  14. mode: 0644
  15. - name: Set template
  16. template:
  17. src: coturn.j2
  18. dest: /etc/default/coturn
  19. owner: root
  20. group: root
  21. mode: 0644
  22. - name: Start servic if not started
  23. service:
  24. name: coturn
  25. state: restarted