Skip to content

Beginner Primer: Automating a Repeated Task, With Glossary

Published November 13, 2026 by Beena Yadav

Beginners in DevOps hear the word automation constantly, usually in a tone that suggests it is the answer to everything. It is not, and it is also not as intimidating as it sounds. Automating a repeated task means getting a computer to do the identical part of a job so that you can use your attention elsewhere. This primer explains how to approach it as a newcomer, with a short glossary at the end so the vocabulary stops getting in the way.

The method is the same whether you are renaming files, preparing a test environment or collecting logs: perform the task manually several times, notice what is exactly the same each time, and then automate only that part.

Step zero: understand the task itself

Before you write anything, perform the job manually. This sounds obvious, yet many beginners copy a script from a forum and run it without understanding any line. That is how people end up with deleted folders and no idea why.

Run through it manually at least three times. After each pass, jot down what you typed, what you looked at, and anything that surprised you. Surprises are valuable: they show where the task is not as simple as it looks.

Step one: find what never changes

Place your three sets of notes side by side. Underline what repeated exactly: the same commands, the same order, the same file locations. Circle anything that differed, such as a name, a date or a decision you made after looking at an output.

Underlined items are candidates for automation. Circled items usually need a human, or at least an input that you provide each time.

Step two: choose the smallest tool that works

Beginners often assume automation means a large platform. In reality, the right tool is the smallest one that solves your problem. A checklist is already a form of automation, because it removes the need to remember. A text template removes retyping. A short script removes manual execution. Choose in that order and stop when the pain is gone.

Once you are comfortable, reading about how careers progress in this field, for example a path from junior to senior DevOps engineer, helps you see where scripting skills fit as responsibilities grow.

Step three: write it so someone else can read it

Name things clearly. Add a short comment at the top that says what the script does and what it needs before running. Have it print each action as it happens. Your future self, three months from now and in a hurry, will be grateful.

Step four: protect yourself

Two simple habits prevent most beginner disasters. First, make the script show what it plans to do and ask for confirmation before anything destructive, such as deleting or overwriting. Second, test it on a throwaway copy before using it on anything real.

Step five: keep a person where judgment is required

A script is excellent at doing the same thing repeatedly, and poor at noticing that today is unusual. When something might need a decision, make the script stop and ask, or leave that step to yourself. Over time you can move more of the work into automation as you gain evidence that it behaves.

Mini-glossary

  • Script: a small file of instructions the computer runs in order.
  • Template: a ready-made layout with blanks for the parts that change.
  • Scheduled job: a task set to start by itself at fixed times, such as every night.
  • Input: something you supply each run, such as a name or a date.
  • Idempotent: safe to run twice, because the second run leaves things as the first did.
  • Toil: repetitive manual work that adds nothing lasting and grows with the size of the system.
  • Human in the loop: a step where a person must review or approve before work continues.
  • Dry run: a practice execution that reports what would happen without making changes.

A worked miniature example

Suppose you tidy a downloads folder every Friday. By hand, you move screenshots into one folder, documents into another and delete installers older than a month. After three Fridays your notes show the folder names and the rule about installers never change. What changes is whether you want to keep a particular document.

You write a short script that sorts the screenshots and documents and lists old installers without deleting them. You keep the final deletion for yourself, after reading the list. That is the whole pattern in miniature: automatic sorting, human decision.

Where beginners go wrong

  1. Automating a task they have done only once.
  2. Copying code they cannot explain.
  3. Giving a script permission to delete without a preview.
  4. Forgetting to write down what the script expects.
  5. Believing that automated means finished. Scripts need occasional review.

Beyond IT: the same pattern in daily life

Everyday services use the same trick. The medical tourism website HipHospitals groups hospitals and doctors by country and places a quote form and an appointment request form where international visitors can use them, so each new enquiry begins in a consistent shape. That is simply a standard first step, described here purely as an administrative illustration with no medical meaning. Your own scripts and templates do the equivalent for the first step of your repeated tasks.

Next steps for your learning

Pick a small, harmless chore of your own. Run it manually three times with notes. Underline the unchanging steps. Write the smallest automation that covers them, test it on copies, and keep one decision for yourself. A good follow-up is a structured career map listing what a DevOps engineer should learn, build and certify, where small automation projects like this one make excellent portfolio pieces.

How to know it is working

A useful automation is one you stop thinking about. A few signs it is healthy: the task takes noticeably less of your time, you can explain every line, a colleague can run it from your notes, and when something odd happens the script stops loudly instead of carrying on. If any of those fails, simplify before adding features. Also check it after a system update, since a script is only as reliable as the environment it assumes.

Summary

Automation is not a trophy, it is a convenience, and it works best when it follows understanding. Observe first. Automate the unchanging part with the smallest tool. Protect against mistakes with previews and copies. Keep humans where judgment lives. If you remember that sequence, the glossary above will quickly stop feeling like jargon and start feeling like ordinary working vocabulary.