Menu

Day 86: A Per-Host Variable and an Account-Wide Rule
📰

Day 86: A Per-Host Variable and an Account-Wide Rule

DEV Community: azure·Nnamdi Felix Ibe·about 2 hours ago
#IC1wxnSD
#devtoazure#devto#dev#rule#three
Reading 0:00
15s threshold

Day 86 of DevOps, Day 36 of Azure. Both tasks today were about a setting whose scope is not where you wrote it.

In the Ansible half, that is the feature. One line in a playbook produced three different file owners in a single run, because the value comes from the inventory and the inventory is per host. In the Azure half, it is the hazard. A filter that reads like it names one container is a prefix on a policy that belongs to the entire storage account, and leaving the filter out means the rule deletes everything.

One Ansible task, one Azure task. Create a file with the right permissions and owner on three servers, then set a lifecycle rule that deletes blobs after seven days.…

Continue reading — create a free account

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