ansible-playbooks

another attempt to have everything organized ...
git clone https://git.e1e0.net/ansible-playbooks.git
Log | Files | Refs | README | LICENSE

main.yml (547B)


      1 ---
      2 - name: Install coturn
      3   package:
      4     name: coturn
      5     state: present
      6 
      7 - name: Enable coturn
      8   lineinfile:
      9     path: /etc/default/coturn
     10     regexp: 'TURNSERVER_ENABLED'
     11     line: TURNSERVER_ENABLED=1
     12   notify: restart coturn
     13 
     14 - name: Config coturn
     15   template:
     16     src: turnserver.conf.j2
     17     dest: /etc/turnserver.conf
     18     owner: root
     19     group: turnserver
     20     mode: '0640'
     21   notify: restart coturn
     22 
     23 - name: Create log folder
     24   file:
     25     path: /var/log/coturn
     26     state: directory
     27     owner: turnserver
     28     group: turnserver
     29     mode: '0755'