diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-26 09:28:38 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-26 09:28:38 +0100 |
| commit | 7a17fe4dcee235b5973326c6daedebccc2de41d2 (patch) | |
| tree | 781a901efbfdda4a5e170547669715cf92854888 /roles/http | |
| parent | 1837f2c9b1a00ce2d50ebb5f8c63032993a5d000 (diff) | |
nginx auto-updates
Diffstat (limited to 'roles/http')
| -rw-r--r-- | roles/http/tasks/main.yml | 17 |
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 |
