DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
    • IT as Code
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • Eggplant testing

      Eggplant Injects AI Into Application Testing

      Eggplant testing

      Appian Infuses Low-Code Platform With AI

      Eggplant testing

      How DevOps Powered by AI and Machine Learning Is Delivering Business Transformation

      AI, machine learning

      A Buyer’s Guide to AI and Machine Learning

      AIOps

      DevOps and AIOps: Better Together

  • Cloud
    • AWS Slack

      AWS Aligns With Slack to Foster Dev Team Collaboration

      Harness

      Harness Enables DevOps Teams to Rein in Cloud Costs

      Cloud and DevOps, CI/CD

      Cloud and DevOps: CI/CD and Market Analysis

      cloud security report

      Report Finds Most Cloud Security Issues Left Unaddressed

      CSP, CDN

      How FaaS Is Disrupting Workflows: New CSP vs. CDN Services

  • Continuous Delivery
    • Atlassian DevOps

      Atlassian Unfurls Bevy of DevOps Updates

      CircleCI

      CircleCI Extends Core CI/CD Platform

      Jamstack

      Netlify Makes Build Plugins Available for Jamstack Platform

      SDM

      CloudBees Extends SDM Service Reach

      New Relic

      Report Finds Much Room for CD Improvement

  • Continuous Testing
    • Shift-Right Testing - TestOps

      Shift-Right Testing: The Emergence of TestOps

      What Developers Should Take Away from the Iowa Caucus App Debacle

      What Developers Should Take Away from the Iowa Caucus App Debacle

      survey testing

      Survey Sees Little Progress in Drive to Shift Testing Left

      DevOps Software Testing

      DevOps Places Software Testing in the Crosshairs

      testing

      DevOps Chats: Enterprise Continuous Testing With a Shift-Right Mindset

  • DevSecOps
    • DevSecOps, federal agencies

      Why DevOps and Federal Agencies Need Each Other

      Mobile app, security, app security

      COVID-19, the New Normal and the Indisputable Importance of Mobile App Security

      GitLab

      GitLab Adds Fuzz Testing to DevSecOps Toolbox

      DevSecOps, DevOps, Security

      3 DevOps Security Best Practices Your Organization Can’t Afford To Ignore

      DevSecOps, agile

      DevSecOps vs. Agile Development: Putting Security at the Heart of Program Development

  • Leadership Suite
    • Work from home, remote work

      Work from Home: Changing Enterprise Risk and Careers

      tech investments

      Surviving Through the New Normal

      Enterprise IT teams

      Need for Increased Training — Strained Budgets Strain Enterprise IT Teams

      COVID Impact

      Coronavirus Impact: Enterprises Must Focus on What Works

      IT budgets

      Despite Downturn, Enterprise IT Budgets Remain Intact

  • Practices
    • Pentesting, penetration testing

      What Developers Really Think About Pentesting

      Knowledge is power, script, Ansible

      Knowledge Is Power

      DevOps, automation, agile

      How DevOps Tools Are Contributing to Automation Initiatives Across the IT Landscape

      DevSecOps, federal agencies

      Why DevOps and Federal Agencies Need Each Other

      Measuring DevOps performance

      Measuring DevOps Performance

  • ROELBOB
    • history-of-computing-part-4-testing

      The History of Computing Part 4: Testing

      runtime

      A Developer’s Lament

      game-time

      Game Time

      personas

      Developer Personas, or the Exquisite State of Being of June

      friends-and-followers

      Friends and Followers

  • Toolbox
    • AWS Slack

      AWS Aligns With Slack to Foster Dev Team Collaboration

      Eggplant testing

      Appian Infuses Low-Code Platform With AI

      Logi Analytics

      Logi Analytics Simplifies Dashboard Development

      Heroku logging, log management

      The Top 5 Challenges to Overcome with Heroku Logging

      Atlassian DevOps

      Atlassian Unfurls Bevy of DevOps Updates

  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » DevOps Practice » Knowledge Is Power

Knowledge is power, script, Ansible

Knowledge Is Power

Don MacvittieBy Don Macvittie on June 17, 2020 Leave a Comment

I was doing some research over the weekend, and it became abundantly clear that you can find an Ansible script to do pretty much any repetitive task in your infrastructure. This is good news for Ansible users, and the pool of available scripts will, no doubt, continue to grow as critical mass effect kicks in.

Recent Posts By Don Macvittie
  • Review, Review, Review
  • No Excuses: Lock Down RDP
  • Training and Certifications: Get It, Don’t Sweat It
Don Macvittie More from Don Macvittie
Related Posts
  • Knowledge Is Power
  • From here to there: practical first DevOps steps
  • Keys to the Kingdom: Protect Your Server from Hackers
    Related Categories
  • Blogs
  • DevOps Practice
  • Features
    Related Topics
  • automated deployment
  • Configuration as Code
  • Configuration Management
  • Red Hat Ansible
Show more
Show less

My concern is for those that find a script that does what they want/need, and drop it into their infrastructure. This approach may be a good short-term fix, but is full of potential peril. Even a cursory read of a complex script is insufficient.

We all know the watchwords of the day are “speed” and “agility,” but take some time to test and get to know those scripts. When (not if) they fail, you’re going to want a clue of what is going on in there to track it down, and you certainly want to understand what is being pulled into your infrastructure. While the community is likely to catch malicious scripts relatively quickly, the inclusion of questionable sources and cases where your infrastructure causes a script to have issues are more likely to make it to your desk.

The easiest validation cycle is to:

  • Read it for understanding. Know what it is doing, why it is doing it and what it is including.
  • Run it in an isolated environment. A pod, a VPN, whatever, just somewhere that you can control ingress and egress.
  • Scan the results as you would anything in production. Make certain sources are valid for your organization, make certain inclusions are safe and validate that any vulnerabilities in the resulting systems are known and acceptable to your organization.
  • If you can, do runtime testing upon it to catch any real-time changes. Most “changes after install” type of software is either well known or not included, so this step is more peace of mind than mandatory.

If your thought was “takes too long, not necessary,” the risk is on you. But on the list of weaknesses in DevOps, that mentality is definitely in the top three. “Takes too long” is an organizational concern that is different everywhere. “Not necessary” is only true until it isn’t. As an IT professional, having at least a passing familiarity with the environments you are creating is part of the job. Fail to do it at your own risk.

Much like there are trusted sources for the various types of repo we access, trusted playbook developers are a list you can curate. I know of a few that, in a pinch, I’d be willing to drop a script from into my architecture with only a cursory review, then give it a more thorough going over later when there is more time. But I know that because I’ve read their scripts, and I get that they are also careful.

While I have Ansible scripts on my mind because that’s what I was looking into, this advice applies to any and all automation scripts that pull from outside sources. Python and Node do a ton of this too, but only highly complex projects pull from a lot of disparate sources. Ansible and other infrastructure automation tools pull from a variety of sources almost by definition (because infrastructure is complex), so they deserve more attention.

In the end, automating all the things changes nothing about responsibility. So, take the time to make certain you know what is going on in your environment, and why. If you are really motivated, take the time to sweep through and remove any references you are certain you don’t need — but nested dependencies make the ROI on this type of work minimal, in my experience.

Meanwhile, you are keeping a ton of servers running and users happy. Keep rocking it, and keep looking for solutions like automation scripts to make you more responsive — just don’t relinquish your authority for the datacenter to random submitter on the internet — because responsibility will still be yours.

Filed Under: Blogs, DevOps Practice, Features Tagged With: automated deployment, Configuration as Code, Configuration Management, Red Hat Ansible

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
Sponsored Content
Featured eBook
The State of the CI/CD/ARA Market: Convergence

The State of the CI/CD/ARA Market: Convergence

The entire CI/CD/ARA market has been in flux almost since its inception. No sooner did we find a solution to a given problem than a better idea came along. The level of change has been intensified by increasing use, which has driven changes to underlying tools. Changes in infrastructure, such ... Read More
« The History of Computing Part 4: Testing
What Developers Really Think About Pentesting »

Upcoming Webinars

A Decade of DevOps: Design Patterns for Future-Proofing Your DevOps Strategy
Wednesday, June 17, 2020 - 1:00 pm EDT
Prepare Your DevOps Culture to Withstand the Digital Experience Onslaught
Thursday, June 18, 2020 - 1:00 pm EDT
Business Continuity with Microservices-Based Apps and DevOps: Learnings from 8x8’s Experience
Monday, June 22, 2020 - 9:00 am EDT

TechStrong TV – Live Streaming

TechStrong TV - All Episodes

Top Stories of the Week

  • View DevOps.com Privacy Policy

Upcoming Webinars

Wed 17

A Decade of DevOps: Design Patterns for Future-Proofing Your DevOps Strategy

Wed, June 17, 1:00 pm - 2:00 pm EDT
Thu 18

Prepare Your DevOps Culture to Withstand the Digital Experience Onslaught

Thu, June 18, 1:00 pm - 2:00 pm EDT
Mon 22

Business Continuity with Microservices-Based Apps and DevOps: Learnings from 8×8’s Experience

Mon, June 22, 9:00 am - 10:00 am EDT

More Webinars

Past Webinars

Latest from DevOps.com

What Developers Really Think About Pentesting
June 17, 2020 | Matias Madou
Knowledge Is Power
June 17, 2020 | Don Macvittie
The History of Computing Part 4: Testing
June 17, 2020 | ROELBOB
DataStax Brings AIOps to Cassandra Database Management
June 16, 2020 | Mike Vizard
Eggplant Injects AI Into Application Testing
June 16, 2020 | Mike Vizard

Most Read on DevOps.com

3 DevOps Security Best Practices Your Organization Can’...
June 11, 2020 | Alexey Klochay
GitLab Adds Fuzz Testing to DevSecOps Toolbox
June 11, 2020 | Mike Vizard
COVID-19, the New Normal and the Indisputable Importance of ...
June 12, 2020 | Tom Tovar
Game Time
June 12, 2020 | ROELBOB
Review, Review, Review
June 11, 2020 | Don Macvittie

On-Demand Webinars

DevOps.com Webinar ReplaysDevOps.com Webinar Replays

Download Free eBook

Hybrid Cloud Security 101
New call-to-action
  • Home
  • About DevOps.com
  • Meet our Authors
  • Write for DevOps.com
  • Business Directory
  • Media Kit
  • Sponsor Info
  • Copyright
  • TOS
  • Privacy Policy

© 2020 ·MediaOps Inc.All rights reserved.