Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Revert "fixing a variable assertion bug; they were not working as wri…
Browse files Browse the repository at this point in the history
…tten"

This reverts commit a49d7d9.
  • Loading branch information
aknot242 committed Sep 22, 2021
1 parent a49d7d9 commit a63daab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ ENHANCEMENTS:

* Implement GitHub Actions CI/CD workflow for repo.
* Add Molecule tests for role.

BUG FIXES:

* The variable assertions were not working as implemented.
3 changes: 3 additions & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
hosts: controllers

vars:
nginx_controller_api_key: ""
nginx_controller_user_email: ""
nginx_controller_user_password: ""
nginx_controller_validate_certs: false
nginx_controller_fqdn: mock-server.molecule-test:1080
nginx_controller_auth_token: "ABC123"
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Fail if required variables are not defined
assert:
that: item is in vars and vars[item] | length > 0
that: ("{{ item }} is defined") and ("{{ item }} | length > 0")
loop:
- nginx_controller_fqdn
- nginx_controller_auth_token
Expand Down

0 comments on commit a63daab

Please sign in to comment.