|
|
|
@ -11,8 +11,76 @@
|
|
|
|
|
yum: |
|
|
|
|
name: nginx |
|
|
|
|
state: latest |
|
|
|
|
- name: Start Nginx |
|
|
|
|
- name: Enable Remi repo |
|
|
|
|
become: yes |
|
|
|
|
service: |
|
|
|
|
name: nginx |
|
|
|
|
yum: |
|
|
|
|
name: https://rpms.remirepo.net/enterprise/remi-release-7.rpm |
|
|
|
|
state: installed |
|
|
|
|
enablerepo: remi |
|
|
|
|
|
|
|
|
|
# NextCloud |
|
|
|
|
# Redis 5 (although remi only has 6) |
|
|
|
|
- name: Install Redis |
|
|
|
|
become: yes |
|
|
|
|
yum: |
|
|
|
|
name: redis |
|
|
|
|
state: latest |
|
|
|
|
enablerepo: remi |
|
|
|
|
|
|
|
|
|
# Postgres |
|
|
|
|
# |
|
|
|
|
# PHP + PHP-FPM |
|
|
|
|
- name: Install PHP |
|
|
|
|
become: yes |
|
|
|
|
yum: |
|
|
|
|
name: |
|
|
|
|
- php74 |
|
|
|
|
- php74-php-gd |
|
|
|
|
- php74-php-json |
|
|
|
|
- php74-php-xml |
|
|
|
|
- php74-php-mbstring |
|
|
|
|
- php74-php-pecl-crypto |
|
|
|
|
- php74-php-process |
|
|
|
|
- php74-php-pecl-zip |
|
|
|
|
- php74-php-pgsql |
|
|
|
|
- php74-php-pecl-redis5 |
|
|
|
|
- php74-php-fpm |
|
|
|
|
state: latest |
|
|
|
|
# Domain |
|
|
|
|
|
|
|
|
|
# Enable all services |
|
|
|
|
- name: Reload Systemd Configuration |
|
|
|
|
become: yes |
|
|
|
|
systemd: |
|
|
|
|
daemon_reload: yes |
|
|
|
|
- name: Start Redis |
|
|
|
|
become: yes |
|
|
|
|
systemd: |
|
|
|
|
name: redis |
|
|
|
|
state: started |
|
|
|
|
enabled: yes |
|
|
|
|
|
|
|
|
|
# git |
|
|
|
|
# user |
|
|
|
|
# authorized_keys |
|
|
|
|
# uwsgi |
|
|
|
|
# cgit |
|
|
|
|
# uwsgi-for-cgit config (/etc/uwsgi/apps-available) |
|
|
|
|
# link /etc/uwsgi/apps-available to /etc/uwsgi/apps-enabled |
|
|
|
|
# nginx domain |
|
|
|
|
# hooks |
|
|
|
|
# blog |
|
|
|
|
# books |
|
|
|
|
# presentations? |
|
|
|
|
# blog |
|
|
|
|
# zola |
|
|
|
|
# nginx domain |
|
|
|
|
# resume |
|
|
|
|
# html |
|
|
|
|
# nginx domain |
|
|
|
|
# books |
|
|
|
|
# mdbook |
|
|
|
|
# nginx domain |
|
|
|
|
# presentations |
|
|
|
|
# nginx domain |
|
|
|
|
|
|
|
|
|