Menu

Day 85: A Task That Always Changes and Two Halves
📰

Day 85: A Task That Always Changes and Two Halves

DEV Community: ansible·Nnamdi Felix Ibe·19 days ago
#UJ7DQR9A
#devtoansible#devto#dev#file#peering
Long article (2038 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.