This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Ansible and Ansible Lint (#2)
* Explicitly define `mode` in relevant tasks. * Explicitly define the `nginx-unit` `apt_repository` and `yum_repository` filename in Debian and RedHat based distros.
- Loading branch information
Showing
5 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
skip_list: | ||
- '106' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
# Changelog | ||
|
||
## 0.2.0 (August 27, 2020) | ||
|
||
BREAKING CHANGES: | ||
|
||
* The repository names in Debian and RedHat based distros have slightly changed. You may run into some duplication issues when running the role on a preexisting target that already has had NGINX installed using the role. To fix this, manually remove the old repository source. | ||
|
||
ENHANCEMENTS: | ||
|
||
* Update Ansible to `2.9.12` and Ansible Lint to `4.3.2`. | ||
* Explicitly define `mode` in relevant tasks. | ||
* Explicitly define the `nginx-unit` `apt_repository` and `yum_repository` filename in Debian and RedHat based distros. | ||
|
||
FEATURES: | ||
|
||
* TravisCI now always uses the latest version of Docker. | ||
|
||
## 0.1.0 (August 19, 2020) | ||
|
||
Initial release of the NGINX Unit role. Contains all NGINX Unit related features previously available on the [NGINX Ansible role](https://github.com/nginxinc/ansible-role-nginx). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
--- | ||
- name: "(Install: Debian/Ubuntu) Add NGINX Unit Repository" | ||
apt_repository: | ||
filename: nginx-unit | ||
repo: "{{ item }}" | ||
update_cache: yes | ||
mode: 0644 | ||
loop: | ||
- deb [arch=amd64] 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
--- | ||
- name: "(Install: CentOS/RedHat) Add NGINX Unit Repository" | ||
yum_repository: | ||
name: unit | ||
name: nginx-unit | ||
baseurl: https://packages.nginx.org/unit/{{ (ansible_distribution == "RedHat") | ternary('rhel/', 'centos/') }}$releasever/$basearch/ | ||
description: NGINX Unit Repository | ||
enabled: yes | ||
gpgcheck: yes | ||
mode: 0644 | ||
when: ansible_distribution != "Amazon" | ||
|
||
- name: "(Install: Amazon Linux) Add NGINX Unit Repository" | ||
yum_repository: | ||
name: unit | ||
name: nginx-unit | ||
baseurl: https://packages.nginx.org/unit/amzn{{ (ansible_distribution_version == "2") | ternary('2', '') }}/$releasever/$basearch/ | ||
description: NGINX Unit Repository | ||
enabled: yes | ||
gpgcheck: yes | ||
mode: 0644 | ||
when: ansible_distribution == "Amazon" |