Compare commits
No commits in common. "c585070edcf1c8312f4bc8f1ba0838aefab61b40" and "52f8ed5a2dcd02bfedcb8d40e464b2fd6d609035" have entirely different histories.
c585070edc
...
52f8ed5a2d
7 changed files with 3 additions and 94 deletions
|
@ -1,7 +1,9 @@
|
||||||
|
- name: Set up PHP
|
||||||
|
import_tasks: php.yml
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
package:
|
package:
|
||||||
name: php-openssl,php-session,php-xml
|
name: php-openssl,php-session,php-xml
|
||||||
notify: restart php-fpm
|
|
||||||
|
|
||||||
- name: Check if dokuwiki should be upgraded
|
- name: Check if dokuwiki should be upgraded
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
- name: restart php-fpm
|
|
||||||
service:
|
|
||||||
name: 'php-fpm{{ php_version }}'
|
|
||||||
state: restarted
|
|
||||||
when: "'handler' not in ansible_skip_tags"
|
|
|
@ -1,49 +0,0 @@
|
||||||
- name: Install packages
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- tar # for unpacking the archive
|
|
||||||
- php-pdo_sqlite
|
|
||||||
- php-ctype
|
|
||||||
- php-dom
|
|
||||||
- php-gd
|
|
||||||
- php-json
|
|
||||||
- php-mbstring
|
|
||||||
- php-openssl
|
|
||||||
- php-session
|
|
||||||
- php-simplexml
|
|
||||||
- php-xml
|
|
||||||
- php-zip
|
|
||||||
notify: restart php-fpm
|
|
||||||
|
|
||||||
- name: Create kanboard directory
|
|
||||||
file:
|
|
||||||
path: /srv/http/kanboard
|
|
||||||
state: directory
|
|
||||||
owner: nginx
|
|
||||||
group: nginx
|
|
||||||
|
|
||||||
- name: Check if kanboard should be upgraded
|
|
||||||
lineinfile:
|
|
||||||
path: /srv/http/kanboard/app/constants.php
|
|
||||||
search_string: 'v{{ kanboard_version }}'
|
|
||||||
state: absent
|
|
||||||
check_mode: true
|
|
||||||
changed_when: false
|
|
||||||
register: is_current
|
|
||||||
|
|
||||||
- name: Install or upgrade kanboard
|
|
||||||
when: 'is_current.found|default(0) == 0'
|
|
||||||
unarchive:
|
|
||||||
remote_src: true
|
|
||||||
src: 'https://github.com/kanboard/kanboard/archive/refs/tags/v{{ kanboard_version }}.tar.gz'
|
|
||||||
extra_opts:
|
|
||||||
- '--strip-components=1'
|
|
||||||
dest: /srv/http/kanboard
|
|
||||||
owner: nginx
|
|
||||||
group: nginx
|
|
||||||
|
|
||||||
- name: Create nginx site
|
|
||||||
template:
|
|
||||||
dest: /etc/nginx/http.d/kanboard.conf
|
|
||||||
src: nginx.conf.j2
|
|
||||||
notify: reload nginx
|
|
|
@ -1,26 +0,0 @@
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
listen [::]:443 ssl;
|
|
||||||
server_name {{ ([dns_name] + tls_domains|default([])) | join(" ") }};
|
|
||||||
|
|
||||||
http2 on;
|
|
||||||
ssl_certificate /etc/letsencrypt/live/{{ dns_name }}/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/{{ dns_name }}/privkey.pem;
|
|
||||||
|
|
||||||
client_max_body_size 100M;
|
|
||||||
|
|
||||||
root /srv/http/kanboard;
|
|
||||||
index index.php;
|
|
||||||
|
|
||||||
location ~ ^/data/ { deny all; }
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
try_files $uri $uri/ /doku.php;
|
|
||||||
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_param REDIRECT_STATUS 200;
|
|
||||||
fastcgi_param HTTPS on;
|
|
||||||
fastcgi_pass unix:/run/php-fpm.socket;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
- name: restart php-fpm
|
|
||||||
service:
|
|
||||||
name: 'php-fpm{{ php_version }}'
|
|
||||||
state: restarted
|
|
||||||
when: "'handler' not in ansible_skip_tags"
|
|
|
@ -38,16 +38,8 @@
|
||||||
roles:
|
roles:
|
||||||
- alpine
|
- alpine
|
||||||
- nginx
|
- nginx
|
||||||
- nginx-php
|
|
||||||
- dokuwiki
|
- dokuwiki
|
||||||
|
|
||||||
- hosts: kanboard
|
|
||||||
roles:
|
|
||||||
- alpine
|
|
||||||
- nginx
|
|
||||||
- nginx-php
|
|
||||||
- kanboard
|
|
||||||
|
|
||||||
- hosts: netbox
|
- hosts: netbox
|
||||||
roles:
|
roles:
|
||||||
- alpine
|
- alpine
|
||||||
|
|
Loading…
Reference in a new issue