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

add ansible tag runs #180

Open
nusenu opened this issue May 31, 2018 · 2 comments
Open

add ansible tag runs #180

nusenu opened this issue May 31, 2018 · 2 comments

Comments

@nusenu
Copy link
Owner

nusenu commented May 31, 2018

this would allow us to test our tags

https://github.com/ahelal/kitchen-ansiblepush#kitchenyml-options

provisioner:
  tags: ...
@nusenu nusenu changed the title can we test ansible tag runs with kitchen? add ansible tag runs May 31, 2018
@Lirt
Copy link
Contributor

Lirt commented Jun 9, 2018

Hey Nusenu,

I can see how this can be useful.

For example we can make a test with tag renewkey, at the end of which will be run verifier (serverspec/inspec), which will check if the key is indeed changed and correct.

Besides that I think that we do not need to specify tags in tests unless we want to test something specific like above. We should mainly test tags that we think that may fail when run isolated. Sometimes that happens, when tasks in tag are dependent on previous tasks which registers variables and so on.

Technically to test tags, we will override provisioner in suite and add tags.

@nusenu
Copy link
Owner Author

nusenu commented Jun 24, 2018

Generally, I agree.

we will have to run a full (no tags) playbook before running the renewkey or reconfigure tags against targets. #176 might be handy then.

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

No branches or pull requests

2 participants