Johannes Rothe 649e48930e
Add ansible roles and playbook to setup LEMP stack
Ansible roles added:
 * nginx
 * php
 * mysql
 * wordpress

Additionally adds a Vagrantfile to setup two machines using the new
playbook for testing.
2023-08-17 20:54:40 +02:00

22 lines
465 B
YAML

---
- name: Install packages
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
name:
- nginx
become: true
- name: Remove default nginx config
ansible.builtin.file:
path: "/etc/nginx/sites-enabled/default"
state: absent
become: true
- name: Copy wordpress nginx config
ansible.builtin.template:
src: "wordpress.conf.j2"
dest: "/etc/nginx/sites-enabled/wordpress.conf"
notify: restart nginx
become: true