Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

znc.yml 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # more or less as per http://wiki.znc.in/Running_ZNC_as_a_system_daemon
  2. - name: Install znc dependencies
  3. apt: pkg=$item state=installed
  4. with_items:
  5. - build-essential
  6. - libssl-dev
  7. - openssl
  8. - swig
  9. - automake
  10. - libtool
  11. - libsasl2-dev
  12. - checkinstall
  13. - g++
  14. - pkg-config
  15. - python3-dev
  16. - libperl-dev
  17. - name: Download znc release
  18. get_url: url=http://znc.in/releases/znc-${znc_version}.tar.gz dest=/root/znc-${znc_version}.tar.gz
  19. - name: Decompress znc source
  20. command: tar xzf /root/znc-${znc_version}.tar.gz chdir=/root creates=/root/znc-${znc_version}/configure
  21. - name: Build and install znc
  22. shell: ./configure --enable-python ; make ; make install executable=/bin/bash chdir=/root/znc-${znc_version} creates=/usr/local/bin/znc
  23. - name: Create znc group
  24. group: name=znc state=present
  25. - name: Create znc user
  26. user: name=znc state=present home=/var/lib/znc system=yes group=znc
  27. - name: Copy znc init file into place
  28. copy: src=etc_init.d_znc dest=/etc/init.d/znc mode=0755
  29. - name: Copy znc combined SSL cert into place
  30. copy: src=etc_ssl_znc-combined.pem dest=/etc/ssl/znc-combined.pem owner=znc group=znc
  31. # NOTE: you should probably just generate this using the directions above and then edit via the web panel
  32. #- name: Copy znc configuration file into place
  33. # template: src=var_lib_znc_configs_znc.conf.j2 dest=/var/lib/znc/configs/znc.conf owner=znc group=znc
  34. - name: Ensure znc is a system service
  35. command: update-rc.d znc defaults
  36. notify: restart znc