Fix package
module in Molecule verification tests (#364)
This commit is contained in:
parent
6ff33cfd27
commit
a4df84063c
10
.github/ISSUE_TEMPLATE/bug_report.md
vendored
10
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -5,22 +5,22 @@ title: ''
|
|||||||
labels: ''
|
labels: ''
|
||||||
assignees: ''
|
assignees: ''
|
||||||
---
|
---
|
||||||
**Describe the bug**
|
### Describe the bug
|
||||||
A clear and concise description of what the bug is.
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
**To reproduce**
|
### To reproduce
|
||||||
Steps to reproduce the behavior:
|
Steps to reproduce the behavior:
|
||||||
1. Deploy NGINX role using playbook.yml
|
1. Deploy NGINX role using playbook.yml
|
||||||
2. View output/logs/configuration on '...'
|
2. View output/logs/configuration on '...'
|
||||||
3. See error
|
3. See error
|
||||||
|
|
||||||
**Expected behavior**
|
### Expected behavior
|
||||||
A clear and concise description of what you expected to happen.
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
**Your environment:**
|
### Your environment:
|
||||||
- Version of the NGINX role or specific commit
|
- Version of the NGINX role or specific commit
|
||||||
- Version of Ansible
|
- Version of Ansible
|
||||||
- Target deployment platform
|
- Target deployment platform
|
||||||
|
|
||||||
**Additional context**
|
### Additional context
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
10
.github/ISSUE_TEMPLATE/feature_request.md
vendored
10
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@ -5,14 +5,14 @@ title: ''
|
|||||||
labels: ''
|
labels: ''
|
||||||
assignees: ''
|
assignees: ''
|
||||||
---
|
---
|
||||||
**Is your feature request related to a problem? Please describe.**
|
### Is your feature request related to a problem? Please describe
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when ...
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
### Describe the solution you'd like
|
||||||
A clear and concise description of what you want to happen.
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
### Describe alternatives you've considered
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
**Additional context**
|
### Additional context
|
||||||
Add any other context or screenshots about the feature request here.
|
Add any other context or screenshots about the feature request here.
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
---
|
||||||
|
name: Pull request
|
||||||
|
about: Submit a pull request to contribute to this role
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
---
|
||||||
### Proposed changes
|
### Proposed changes
|
||||||
Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue using one of the [supported keywords](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue) here in this description (not in the title of the PR).
|
Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue using one of the [supported keywords](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue) here in this description (not in the title of the PR).
|
||||||
|
|
0
SECURITY.md → .github/SECURITY.md
vendored
0
SECURITY.md → .github/SECURITY.md
vendored
@ -10,9 +10,14 @@ ENHANCEMENTS:
|
|||||||
|
|
||||||
* Only run GitHub actions Galaxy CI/CD workflow when a new release is published.
|
* Only run GitHub actions Galaxy CI/CD workflow when a new release is published.
|
||||||
* Specify GitHub actions Ubuntu release.
|
* Specify GitHub actions Ubuntu release.
|
||||||
|
* Minor GitHub template tweaks, including the creation of a SECURITY doc.
|
||||||
* Update list of supported platforms.
|
* Update list of supported platforms.
|
||||||
* Update Ansible base to `2.10.5`, Ansible to `2.10.6`, Molecule to `3.2.3` and yamllint to `1.26.0`.
|
* Update Ansible base to `2.10.5`, Ansible to `2.10.6`, Molecule to `3.2.3` and yamllint to `1.26.0`.
|
||||||
|
|
||||||
|
BUG FIXES:
|
||||||
|
|
||||||
|
Add `state` parameter to package module in Molecule verification tests.
|
||||||
|
|
||||||
## 0.19.1 (January 11, 2021)
|
## 0.19.1 (January 11, 2021)
|
||||||
|
|
||||||
ENHANCEMENTS:
|
ENHANCEMENTS:
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
- name: Check if NGINX is installed
|
- name: Check if NGINX is installed
|
||||||
package:
|
package:
|
||||||
name: nginx
|
name: nginx
|
||||||
|
state: present
|
||||||
check_mode: yes
|
check_mode: yes
|
||||||
register: install
|
register: install
|
||||||
failed_when: (install is changed) or (install is failed)
|
failed_when: (install is changed) or (install is failed)
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
- name: Check if NGINX is installed
|
- name: Check if NGINX is installed
|
||||||
package:
|
package:
|
||||||
name: nginx
|
name: nginx
|
||||||
|
state: present
|
||||||
check_mode: yes
|
check_mode: yes
|
||||||
register: install
|
register: install
|
||||||
failed_when: (install is changed) or (install is failed)
|
failed_when: (install is changed) or (install is failed)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install NGINX
|
- name: Install NGINX Plus
|
||||||
include_role:
|
include_role:
|
||||||
name: ansible-role-nginx
|
name: ansible-role-nginx
|
||||||
vars:
|
vars:
|
||||||
|
@ -2,14 +2,15 @@
|
|||||||
- name: Verify
|
- name: Verify
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check if NGINX is installed
|
- name: Check if NGINX Plus is installed
|
||||||
package:
|
package:
|
||||||
name: nginx-plus
|
name: nginx-plus
|
||||||
|
state: present
|
||||||
check_mode: yes
|
check_mode: yes
|
||||||
register: install
|
register: install
|
||||||
failed_when: (install is changed) or (install is failed)
|
failed_when: (install is changed) or (install is failed)
|
||||||
|
|
||||||
- name: Check if NGINX service is running
|
- name: Check if NGINX Plus service is running
|
||||||
service:
|
service:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: started
|
state: started
|
||||||
@ -18,7 +19,7 @@
|
|||||||
register: service
|
register: service
|
||||||
failed_when: (service is changed) or (service is failed)
|
failed_when: (service is changed) or (service is failed)
|
||||||
|
|
||||||
- name: Verify NGINX is up and running
|
- name: Verify NGINX Plus is up and running
|
||||||
uri:
|
uri:
|
||||||
url: http://localhost
|
url: http://localhost
|
||||||
status_code: 200
|
status_code: 200
|
||||||
|
Loading…
Reference in New Issue
Block a user