Menu

Ansible started our security updates on forty gateways in the background and six of them failed where nobody looked
📰

Ansible started our security updates on forty gateways in the background and six of them failed where nobody looked

DEV Community: ansible·Sergey Shinder·11 days ago
#JNcKxJrN
#devtoansible#devto#dev#task#upgrade
Long article (392 words) — no AI summary yet.
Reading 0:00
15s threshold

Our forty integration gateways are Debian servers, and once a month a playbook applies security updates to them: apt upgrade, then a reboot where one is needed. Run in batches, it took about ninety minutes, and in the summer a colleague made it faster. He gave the upgrade task async: 3600 and poll: 0, so Ansible would start the upgrade on every gateway and move on instead of waiting. The run dropped to four minutes, the recap showed no failures, and everyone was pleased.

In November our quarterly vulnerability scan listed six gateways as three months behind on OpenSSL and OpenSSH. The patch playbook had run on them every month, and every month it had been green.

poll: 0 is the setting Ansible calls fire and forget. It starts the task on the host as a background job, records a job id, and goes straight on to the next task without ever asking how the job ended. Whatever happens after that is not part of the play.…

Continue reading — create a free account

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