forked from CCCHH/ansible-infra
Use the .yaml file extension for all YAML files
This commit is contained in:
parent
9d0697f0d0
commit
1bcb77961b
60 changed files with 1 additions and 1 deletions
39
playbooks/deploy_dokuwiki.yaml
Normal file
39
playbooks/deploy_dokuwiki.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
- name: Configure wiki.z9 with dokuwiki
|
||||
become: true
|
||||
hosts: wiki
|
||||
roles:
|
||||
- nginx
|
||||
- cert
|
||||
tasks:
|
||||
# TODO: make this a role
|
||||
- name: Install php-fpm
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- php-fpm
|
||||
- php-xml
|
||||
- php-mbstring
|
||||
- php-zip
|
||||
- php-intl
|
||||
- php-gd
|
||||
diff: false
|
||||
- name: Make sure php-fpm is enabled
|
||||
ansible.builtin.systemd:
|
||||
service: php7.4-fpm.service
|
||||
enabled: true
|
||||
|
||||
# place dokuwiki zip into /var/www/dokuwiki manually!
|
||||
- name: Create www dir
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /var/www
|
||||
state: directory
|
||||
owner: nginx
|
||||
group: nginx
|
||||
mode: "0755"
|
||||
- name: Custom php-fpm config
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: configs/wiki/php-fpm-dokuwiki.conf
|
||||
dest: /etc/php/7.4/fpm/pool.d/dokuwiki.conf
|
||||
mode: "0755"
|
||||
Loading…
Add table
Add a link
Reference in a new issue