--- - name: "(Install: Linux) Configure NGINX repo" include_tasks: "{{ role_path }}/tasks/opensource/setup-{{ ansible_os_family | lower }}.yml" when: - ansible_os_family == "Alpine" or ansible_os_family == "Debian" or ansible_os_family == "RedHat" or ansible_os_family == "Suse" - nginx_install_from == "nginx_repository" - name: "(Install: Linux) Modify Service for Systemd" include_tasks: "{{ role_path }}/tasks/prerequisites/setup-systemd.yml" when: - ansible_service_mgr == "systemd" - nginx_service_modify - name: "(Install: Linux) Install NGINX from source" include_tasks: "{{ role_path }}/tasks/opensource/setup-source.yml" when: nginx_install_from == "source" - name: "(Install: Linux) Install NGINX package" package: name: "nginx{{ nginx_version | default('') }}" state: "{{ nginx_state }}" when: nginx_install_from == "os_repository" notify: "(Handler: All OSs) Start NGINX"