diff --git a/tasks/unit/setup-debian.yml b/tasks/unit/setup-debian.yml index 114fc45..8029ab5 100644 --- a/tasks/unit/setup-debian.yml +++ b/tasks/unit/setup-debian.yml @@ -5,7 +5,3 @@ with_items: - deb https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit - deb-src https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit - -- name: "(Install: Debian/Ubuntu) Update APT Cache" - apt: - update_cache: yes diff --git a/tasks/unit/setup-redhat.yml b/tasks/unit/setup-redhat.yml index a1fe14f..232c0c9 100644 --- a/tasks/unit/setup-redhat.yml +++ b/tasks/unit/setup-redhat.yml @@ -1,18 +1,18 @@ --- -- name: "(Install: RedHat) Add NGINX Unit Repository" +- name: "(Install: CentOS/RedHat) Add NGINX Unit Repository" yum_repository: - name: nginx + name: unit baseurl: https://packages.nginx.org/unit/{{ (ansible_distribution == "RedHat") | ternary('rhel/', 'centos/') }}$releasever/$basearch/ - description: NGINX Repository + description: NGINX Unit Repository enabled: yes gpgcheck: yes when: ansible_distribution != "Amazon" - name: "(Install: Amazon Linux) Add NGINX Unit Repository" yum_repository: - name: nginx + name: unit baseurl: https://packages.nginx.org/unit/amzn/$releasever/$basearch/ - description: NGINX Repository + description: NGINX Unit Repository enabled: yes gpgcheck: yes when: ansible_distribution == "Amazon"