nginx and php roles

Sam Okafor 1 year ago
parent 703c4b3c77 commit 9fe59a147c1beb0d99baa252072994043640a06a
2 changed files with 18 additions and 0 deletions
+10-0roles/nginx/tasks/main.yml ADDED
View File
@@ -0,0 +1,10 @@
1+---
2+- name: nginx
3+ apt:
4+ name: nginx
5+
6+- name: Site config
7+ template:
8+ src: site.conf.j2
9+ dest: /etc/nginx/sites-enabled/{{ domain }}.conf
10+ notify: reload nginx
+8-0roles/php/tasks/main.yml ADDED
View File
@@ -0,0 +1,8 @@
1+---
2+- name: PHP {{ php_version }}
3+ apt:
4+ name:
5+ - php{{ php_version }}-fpm
6+ - php{{ php_version }}-mysql
7+ - php{{ php_version }}-mbstring
8+ - php{{ php_version }}-xml