Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CI tests for ansible #197

Open
SuperQ opened this issue Feb 4, 2019 · 3 comments
Open

Implement CI tests for ansible #197

SuperQ opened this issue Feb 4, 2019 · 3 comments

Comments

@SuperQ
Copy link
Contributor

SuperQ commented Feb 4, 2019

Some CI testing suggestions from @paulfantom

ansible-lint -x ANSIBLE0006,ANSIBLE0010,ANSIBLE0013,ANSIBLE0016 ansible/playbooks/site.yml
ansible-playbook -i hosts ansible/playbooks/site.yml

And after conference it could be expanded to have better coverage (maybe based on molecule).
Note: Second command needs to decrypt secrets.yml and that's why I suggest to use travis as they have a good policy around such things.

@paulfantom
Copy link
Contributor

Ansible needs to know all variables before running playbooks and tests. This means either:

  1. decrypting secrets.yml before running tests suite
  2. creating fake, unencrypted secrets.yml files for testing

Just to be on a safe side I would recommend going with second option.

@SuperQ
Copy link
Contributor Author

SuperQ commented Nov 29, 2019

CI is enabled, and our first test is a simple run of yamllint. #215

@SuperQ
Copy link
Contributor Author

SuperQ commented Nov 29, 2019

Added the ansible-lint testing here: #218.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants