ATIX AG
  • Services
    • Consulting
      • Linux Platform Operations​
      • Infrastructure Automation
      • Container Platforms and Cloud
      • DevOps Processes, Tooling and Culture
      • Cloud Native Software Development
    • Products
      • orcharhino
        • About orcharhino
        • Support
        • orcharhino operation
      • Hangar
        • About Hangar
        • Hangar Roadmap
        • Hangar Community
    • Technologies
      • Ansible
      • Docker
      • Foreman
      • GitLab
      • Istio
      • Kubernetes
      • Linux Distributions
      • OpenShift
      • Puppet
      • OpenVox
      • Rancher
      • Rundeck
      • SaltStack
      • SUSE Manager
      • Terraform
  • Trainings
    • Ansible Training
    • Container Training
    • Docker Training
    • Git Training
    • Go Training (Golang)
    • Istio Training
    • Kubernetes Training
    • OpenShift Training
    • orcharhino Training
    • Puppet Trainings
    • Terraform Training
  • Events
    • Webinars
  • Blog
  • Company
    • About Us
    • References
    • Corporate values
    • Social engagement
    • Newsroom
    • Newsletter
    • Contact us
  • Career
  • Search
  • Menu Menu

Configuration management with Ansible

The Puppet alternative from Red Hat. In times of large and dynamic IT infrastructures, the topic of IT automation is becoming increasingly important. There are a variety of solutions that are used depending on the nature of the infrastructure.

One of the best-known solutions is certainly Puppet. Ansible, which has been part of the Red Hat Group since 2015, is somewhat younger and so far less prominent. Ansible is an open source automation tool written in Python. A wide variety of automation options are already included in Ansible as so-called modules, but can also be written by the user themselves in any programming language. The prerequisite is that you can process or deliver input and output in JSON format.

Instructions are written by the user as ad-hoc tasks, or combined and reusable as playbooks in YAML style.

[root@ansible playbook]# ansible-playbook example_playbook.yml -i inventory/inventory.ini PLAY
 [example_webhost]  **********************************************************
TASK [Gathering facts]  ************************************************************ ok: 
 [192 .168.121.31] TASK [Installiere httpd Paket]  ************************************ changed: 
 [192 .168.121.31] => (item=[u'epel-release', u'httpd'])
TASK [Kopiere httpd config- Datei auf den Zielrechner]  ********************************* changed: 
 [192 .168.121.31] TASK [Starten des httpd Service]  **************************** changed: 
 [192 .168.121.31] PLAY RECAP *************************************
[192 .168.121.31] : ok=4 changed=3 unreachable=0 failed=0

Variables, templates and programming logic can be defined and used via Jiinja syntax. If a playbook is to be executed on a client, Ansible sets up an SSH connection and moves the required modules, usually Python scripts, there. These are then executed locally; communication between the module on the client side and the master node occurs via JSON statements. After the playbook has been successfully processed, the local files on the client side are deleted again. From this functional principle it is clear that Ansible uses the push principle, i.e. instructions are sent from a master node to any number of clients. In contrast, Puppet uses the pull principle, in which clients pull instructions from a dedicated master.

The advantages and disadvantages are obvious: Ansible does not require any additional software or complicated configuration. The only requirement on the master page, in addition to Ansible, is Python version 2.6 or 2.7, as well as the playbook that is to be executed. The only limitation currently is Windows, which, like Puppet, cannot serve as MasterOS. On the client side, SSH access from the master and Python version 2.6 or higher are required. The disadvantage lies in the automation of playbook executions: Ansible currently only offers the option of automatically executing tasks and playbooks via the paid tool Tower, if you don’t want to use crontabs. In addition, Tower can also manage individual Ansible users and user groups, as well as SSH keys and passwords.

Red Hat has now also made Ansible Tower available free of charge. Up to this point you could use one of the open source alternatives, e.g. Semaphores help. In addition, orcharhino or Foreman can of course also be used to orchestrate clients via Ansible. The Ansible community is very active and constantly growing, so new features and a rapidly growing range of functions are guaranteed.

All in all, Ansible already offers a great way to automate IT infrastructures with relatively simple means, which is already fully competitive with Puppet . The combination of Ansible and Puppet probably offers the absolute best solution at the moment. It definitely remains exciting, not least due to Red Hat’s announcement that Ansible will be deeply integrated into its new products. What this means for Foreman, Satellite and other products remains to be seen. zeigen.

Ansible Training

The Ansible Training – “Fast Track” teaches participants how to manage infrastructures with Ansible as well as the basic concepts and best practices of Ansible. The “Ansible Extended Training” also offers an additional day where the trainer can specifically address individual questions and needs of the participants.

Find out more
You might also like
orcharhinoorcharhino and Sophos – a malware trail search
ansibleAutomated Windows Patches with Ansible
ansibleAnsible Collections – More clarity and easier sharing in Ansible
Puppet on Windows in Chocolatey flavor
ansibleWinRM & Ansible – Ways of authentication and encryption
Workshops in the Cloud – What Ansible, Docker and the GitLab CI/CD offer for this
ATIX-Crew
+ postsBio

Der ATIX-Crew besteht aus Leuten, die in unterschiedlichen Bereichen tätig sind: Consulting, Development/Engineering, Support, Vertrieb und Marketing.

  • ATIX-Crew
    https://atix.de/en/blog/author/atix-crew/
    Foreman Birthday Party 2024
  • ATIX-Crew
    https://atix.de/en/blog/author/atix-crew/
    CrewDay 2024
  • ATIX-Crew
    https://atix.de/en/blog/author/atix-crew/
    Navigating the XZ Security Vulnerability: A Comprehensive Guide
  • ATIX-Crew
    https://atix.de/en/blog/author/atix-crew/
    Automating Kafka with Ansible
Expertise that Drives your IT Forward

🎓 Webinars – Live & On-Demand
Knowledge on your schedule. Practical insights on DevOps, Open Source & IT automation.
👉 Explore now »

🔔 Technology. Trends. Dates.
Stay up to date with the latest IT developments and upcoming events. Subscribe now and stay informed.
👉 Subscribe to our newsletter »

ISO Certified Certificate
Newsletter
Never miss anything again. Sign up for the ATIX newsletter!
Sign up now
Blog
  • Blog Start Page
  • ATIX Insights
  • Cloud Native
  • Container Plattformen und Cloud
  • DevOps
  • Infrastructure Automation
  • Linux Platform Operations
  • orcharhino
Privacy & Legal

Privacy Policy

Imprint

Terms and Conditions

B2B

Twitter     Facebook    LinkedIn    Xing     Youtube     mastodon=

© Copyright – ATIX AG

Scroll to top