## DEPRECATED -- Use nginxinc.nginx_unit role instead (https://github.com/nginxinc/ansible-role-nginx-unit) --- - name: (DEPRECATED) Add NGINX Unit Repository yum_repository: name: unit baseurl: https://packages.nginx.org/unit/{{ (ansible_facts['distribution'] == "RedHat") | ternary('rhel/', 'centos/') }}$releasever/$basearch/ description: NGINX Unit Repository enabled: yes gpgcheck: yes mode: 0644 when: ansible_facts['distribution'] != "Amazon" - name: (DEPRECATED) Add NGINX Unit Repository yum_repository: name: unit baseurl: https://packages.nginx.org/unit/amzn{{ (ansible_facts['distribution_version'] == "2") | ternary('2', '') }}/$releasever/$basearch/ description: NGINX Unit Repository enabled: yes gpgcheck: yes mode: 0644 when: ansible_facts['distribution'] == "Amazon"