- Now, that we are at the end of this lesson,
let's do a lab.
So, in this lab,
it's all about idempotency.
Idempotency is a great thing in Ansible.
It ensures that running a playbook
always gives the same result,
no matter what the current state of the managed machine is.
You have previously learned that the command module
as well as related modules
like shell and raw are not idempotent by nature.
However, if you're using a register in a smart way,
you can use even these modules in an idempotent way.
And that is what this lab is all about.
Write a playbook that creates a user
that is using the command module
in such a way that the playbook is idempotent.
Good luck.