Skip to content

Commit

Permalink
fix indent, fix nginx version
Browse files Browse the repository at this point in the history
  • Loading branch information
loraine-gueguen committed Aug 2, 2024
1 parent 0e8839d commit 9f1f9ba
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tasks/install.dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@
- name: Uninstall NGINX if already installed
block:

- name: Set sequenceserver_installed_nginx_version variable
set_fact:
sequenceserver_installed_nginx_version: "{{ get_nginx_version.stderr | regex_search('nginx/(?P<version>\\d+\\.\\d+\\.\\d+)', '\\g<version>') | first }}"
- name: Set sequenceserver_installed_nginx_version variable
set_fact:
sequenceserver_installed_nginx_version: "{{ get_nginx_version.stderr | regex_search('nginx/(?P<version>\\d+\\.\\d+\\.\\d+)', '\\g<version>') | first }}"

- name: Display installed NGINX version
ansible.builtin.debug:
var: sequenceserver_installed_nginx_version
- name: Display installed NGINX version
ansible.builtin.debug:
var: sequenceserver_installed_nginx_version

- name: Uninstall Nginx
include_role:
name: nginxinc.nginx
vars:
nginx_setup: "uninstall"
when: sequenceserver_installed_nginx_version != sequenceserver_nginx_version
- name: Uninstall Nginx
include_role:
name: nginxinc.nginx
vars:
nginx_setup: "uninstall"
when: sequenceserver_installed_nginx_version != sequenceserver_nginx_version

when: not get_nginx_version.failed

- name: Install Nginx
include_role:
name: nginxinc.nginx
vars:
nginx_version: "{{ sequenceserver_nginx_version }}"
nginx_version: "-{{ sequenceserver_nginx_version }}"

# NGINX LDAP authentication

Expand Down

0 comments on commit 9f1f9ba

Please sign in to comment.