31 lines
584 B
YAML
31 lines
584 B
YAML
---
|
|
- name: Install Wordpress Dependencies
|
|
become: Yes
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
state: latest
|
|
name:
|
|
- ghostscript
|
|
- php
|
|
- php-bcmath
|
|
- php-curl
|
|
- php-intl
|
|
- php-json
|
|
- php-mbstring
|
|
- php-mysql
|
|
- php-xml
|
|
- php-zip
|
|
- wordpress
|
|
- mariadb-server
|
|
- python3-mysqldb
|
|
|
|
|
|
- name: Import Wordpress database config
|
|
become: yes
|
|
ansible.builtin.template:
|
|
src: "config-localhost.php.j2"
|
|
dest: "/etc/wordpress/config-localhost.php"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|