Day 85 of DevOps, Day 35 of Azure. Both tasks today reported a state that is a word rather than a fact.
An Ansible playbook reported changed=1 , and it would have reported that on every run for the rest of time, whether or not anything was different. And an Azure peering that was created reported a state, and moved no packets at all, because a peering is two resources and I had made one.
One Ansible task, one Azure task. Write a playbook that creates a file, then peers two virtual networks. The tasks come from the KodeKloud Engineer platform.
Task 1: A playbook that creates a file
The task: a playbook that creates an empty /tmp/file.txt on App Server 01.
Step 1: Look before you run
[ tony@stapp01 ~ ] $ ls /tmp systemd-private-... ( no file.txt )
Enter fullscreen mode
Exit fullscreen mode
This is the step that makes the result mean something, and the next section is why.…