Bez popisu
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.

z-push.yml 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. - name: Install required packages for z-push
  2. apt: pkg={{ item }} state=installed
  3. with_items:
  4. - php5
  5. - php5-cli
  6. - php-soap
  7. - php5-imap
  8. - name: Download z-push release
  9. get_url:
  10. url=http://download.z-push.org/final/2.1/z-push-{{ zpush_version }}.tar.gz
  11. dest=/root/z-push-{{ zpush_version }}.tar.gz
  12. - name: Decompress z-push source
  13. command: tar xzf z-push-{{ zpush_version }}.tar.gz chdir=/root creates=/root/z-push-{{ zpush_version }}
  14. - name: Create /usr/share/z-push
  15. file: state=directory path=/usr/share/z-push
  16. - name: Copy z-push source files to /usr/share/z-push
  17. shell: cp -R z-push-{{ zpush_version }}/* /usr/share/z-push/ chdir=/root
  18. - name: Remove downloaded, temporary z-push source files
  19. shell: rm -rf z-push* chdir=/root
  20. - name: Ensure z-push state and log directories are in place
  21. file: state=directory path={{ item }} owner=www-data group=www-data mode=755
  22. with_items:
  23. - /decrypted/zpush-state
  24. - /var/log/z-push
  25. notify: restart apache
  26. - name: Copy z-push's config.php into place
  27. template: src=usr_share_z-push_config.php.j2 dest=/usr/share/z-push/config.php
  28. - name: Configure z-push apache alias and php settings
  29. copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf.d/z-push.conf
  30. notify: restart apache