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.

selfoss.yml 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. - name: Clone Selfoss
  2. git: repo=https://github.com/SSilence/selfoss.git
  3. dest=/var/www/selfoss
  4. - name: Set selfoss permissions
  5. action: file owner=www-data group=www-data path=/var/www/selfoss recurse=yes state=directory
  6. - name: Create database user for selfoss
  7. mysql_user: user={{ selfoss_mysql_username }} password={{ selfoss_mysql_password }} state=present priv="selfoss.*:ALL"
  8. - name: Create database for selfoss
  9. mysql_db: name={{ selfoss_mysql_database }} state=present
  10. - name: Install selfoss config.ini
  11. template: src=var_www_selfoss_config.ini.j2 dest=/var/www/selfoss/config.ini group=www-data owner=www-data
  12. - name: Enable Apache rewrite module
  13. command: a2enmod rewrite creates=/etc/apache2/mods-enabled/rewrite.load
  14. notify: restart apache
  15. - name: Enable Apache headers module
  16. command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
  17. notify: restart apache
  18. - name: Enable Apache expires module
  19. command: a2enmod expires creates=/etc/apache2/mods-enabled/expires.load
  20. notify: restart apache
  21. - name: Configure the Apache HTTP server for selfoss
  22. template: src=etc_apache2_sites-available_selfoss.j2 dest=/etc/apache2/sites-available/selfoss group=www-data owner=www-data
  23. notify: restart apache
  24. - name: Enable the selfoss site
  25. command: a2ensite selfoss creates=/etc/apache2/sites-enabled/selfoss
  26. notify: restart apache
  27. - name: Install selfoss cronjob
  28. cron: name="ownCloud" user="www-data" minute="*/5" job="curl -k 'https://{{ selfoss_domain }}/update'"