Day 84 of DevOps, Day 34 of Azure. Both tasks today turned on a path that is not where it looks like it is.
An Ansible task with two paths in it, where one is on the machine running the playbook and the other is on the machine being configured, and nothing in the task says so. And an Azure VM that resolved DNS perfectly while being unable to open a single outbound connection, because that lookup travels down a channel the rule I was hunting for cannot touch.
One Ansible task, one Azure task. Copy a file from the jumphost to three servers, then fix a VM that cannot install packages. The tasks come from the KodeKloud Engineer platform.
Task 1: One file, three servers
The task: copy /usr/src/data/index.html from the jumphost to /opt/data on all three app servers.
Step 1: Check empty first
[ tony@stapp01 ~ ] $ ls -la /opt/data total 12 drwxr-xr-x 2 root root 4096 May 23 12:11 .
Enter fullscreen mode
Exit fullscreen mode
On each of the three.…