nginx and php roles
2 changed files with 18 additions and 0 deletions
roles/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 | |
roles/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 | |