No Description
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.

selfoss.yml 1.7KB

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. postgresql_user: login_host=localhost login_user={{ db_admin_username }} login_password={{ db_admin_password }} name={{ selfoss_db_username }} password={{ selfoss_db_password }} state=present
  8. - name: Create database for selfoss
  9. postgresql_db: login_host=localhost login_user={{ db_admin_username }} login_password={{ db_admin_password }} name={{ selfoss_db_database }} state=present owner={{ selfoss_db_username }}
  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="selfoss" user="www-data" minute="*/5" job="curl --silent --show-error -k 'https://{{ selfoss_domain }}/update' > /dev/null"