summaryrefslogtreecommitdiff
path: root/roles/http/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/http/tasks')
-rw-r--r--roles/http/tasks/main.yml17
1 files changed, 2 insertions, 15 deletions
diff --git a/roles/http/tasks/main.yml b/roles/http/tasks/main.yml
index ad98f6e..f8a0078 100644
--- a/roles/http/tasks/main.yml
+++ b/roles/http/tasks/main.yml
@@ -1,19 +1,12 @@
-- name: Install composer, make, nginx, PHP, PHP-FPM, and PHP-PDO (SQLITE)
+- name: Install composer, make, PHP, PHP-FPM, and PHP-PDO (SQLITE)
community.general.apk:
name:
- composer
- make
- - nginx
- php85-fpm
- php85-pdo
- php85-pdo_sqlite
-- name: Start nginx service and configure to restart on boot
- ansible.builtin.service:
- name: nginx
- enabled: true
- state: started
-
- name: Start PHP-FPM service and configure to restart on boot
ansible.builtin.service:
name: php-fpm85
@@ -41,12 +34,6 @@
name: php-fpm85
state: restarted
-- name: Remove default nginx site config
- register: default_nginx_site_config
- ansible.builtin.file:
- path: /etc/nginx/http.d/default.conf
- state: absent
-
- name: Install joeac.net nginx site config
register: joeacnet_nginx_site_config
ansible.builtin.template:
@@ -54,7 +41,7 @@
dest: /etc/nginx/http.d/joeac.net.conf
- name: Restart nginx service if config changed
- when: default_nginx_site_config is changed or joeacnet_nginx_site_config is changed
+ when: joeacnet_nginx_site_config is changed
ansible.builtin.service:
name: nginx
state: restarted