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

Test Ansible playbooks using Assert #74

Open
dmccuk opened this issue Aug 20, 2021 · 4 comments
Open

Test Ansible playbooks using Assert #74

dmccuk opened this issue Aug 20, 2021 · 4 comments
Labels
topic Suggestion for a presentation topic

Comments

@dmccuk
Copy link
Contributor

dmccuk commented Aug 20, 2021

Talk title

How to prove Ansible did what it said it did!

Talk Description

When we run Ansible to manage server configurations, we assume (if there is no red errors) that it worked. But if you're developing ansible modules for your systems, and want to take the DevOps approach and work on CICD pipelines, you need to have some tests in there to prove that what you asked ansible to do has actually worked.

One of the best ways to do this within ansible, is to use the Assert module. It asserts that a given expression is true. When you combine this with the output of a command that’s registered to a variable, there is almost no limit to what you can test.

Estimated Duration

15 mins - no more than 20.

Twitter Handle

LinkedIn? https://www.linkedin.com/in/dennismccarthyuk/

Sponsorship

I'm just a guy who likes doing stuff with Ansible

@gundalow gundalow added the topic Suggestion for a presentation topic label Aug 20, 2021
@gundalow
Copy link
Collaborator

@dmccuk This would be a great topic, thank you.
Do you think we could fit in a virtual meetup before AnsibleFest (ie early September)?

@dmccuk
Copy link
Contributor Author

dmccuk commented Aug 20, 2021 via email

@dmccuk
Copy link
Contributor Author

dmccuk commented Oct 6, 2021

@gundalow How's the planning going for the next meetup. I'm not sure if you saw my previous reply but I'm ready when you are to give a presentation on testing Ansible playbooks using Assert.

@gundalow
Copy link
Collaborator

Hi,
The Ansible London Meetup is back in-person. I know you made this kind offer to present many years ago, though the next meetup is Thursday 21st November, would you be interested in giving this talk then?

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

No branches or pull requests

2 participants