From a019a9337fe3aa840ef083b645a3b4f294abe0d6 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 21 May 2021 16:40:19 -0400 Subject: [PATCH] nginx/tasks/install.yml: Modern Ansible approach (to install packages) 77b3041 --- roles/nginx/tasks/install.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/roles/nginx/tasks/install.yml b/roles/nginx/tasks/install.yml index 0cc15da0e..3af0e435b 100644 --- a/roles/nginx/tasks/install.yml +++ b/roles/nginx/tasks/install.yml @@ -5,16 +5,15 @@ ignore_errors: yes # 'when: apache_installed is defined' insuff b/c mysql's php installs apache2 -- name: Install required and helper packages for NGINX +- name: 'Install 5 packages for NGINX: libnginx-mod-http-subs-filter, nginx-extras, php-fpm, uwsgi, uwsgi-plugin-python3' package: - name: "{{ item }}" + name: + - libnginx-mod-http-subs-filter + - nginx-extras + - php-fpm + - uwsgi + - uwsgi-plugin-python3 state: present - with_items: - - nginx-extras - - uwsgi - - uwsgi-plugin-python3 - - php-fpm - - libnginx-mod-http-subs-filter # 2020-10-16: Removed per #2560 #- name: Add user '{{ apache_user }}' to shadow group, so it can authenticate Admin Console