diff --git a/app/scripts/ansible/roles/nginx.yml b/app/scripts/ansible/roles/nginx.yml index c62e08a2..ac7e0733 100644 --- a/app/scripts/ansible/roles/nginx.yml +++ b/app/scripts/ansible/roles/nginx.yml @@ -38,11 +38,19 @@ - name: Add syn_flood tasks include: haproxy/tasks/syn_flood.yml when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0) + - name: Install nginx for Centos Stream 9 + package: + name: nginx + state: present + when: ansible_facts['distribution_major_version'] == '9' + tags: + - system roles: - role: nginxinc.nginx environment: http_proxy: "{{PROXY}}" https_proxy: "{{PROXY}}" + when: ansible_facts['distribution_major_version'] != '9' tags: - system