5 things you didn’t know your Red Hat Ansible Automation Platform could do

When we think about automation, we tend to focus on efficiency. Automating simple or even complex tasks to streamline our processes - It’s one of the reasons organizations adopt and implement Red Hat Ansible Automation Platform.
But what if we can take our automation abilities to the next level?
In this blog post, I’m going to highlight 5 things you didn’t know your Ansible Automation Platform could do.
Callback Plugins
Ever need a job to notify you, log events, or capture the performance of a playbook?
Say hello to callback plugins. These plugins provide a way for Ansible to respond to particular events. In order to enable callback plugins, you'll need to tweak your job settings and supply the directory location in the Ansible callback plugins section.

For example, the log_plays callback plugin records playbook events to a log file, while the mail callback plugin can send emails on playbook failures.
A list of available callback plugins can be found within the Ansible documentation.
JSON Output
Looking for an easy way to view your Ansible output in JSON format? Take advantage of the Ansible API.
When a job runs within Ansible Automation Platform, it contains a job ID.
If you visit the job events URL for that particular job ID (https://<controller-server-name>/api/v2/jobs/<job_id>/job_events
), you get instant access to your playbook output in JSON format!

Dynamic Inventories
Do you ever use a dynamic inventory but only need to access a few servers from the list?
Use the Limit field within your Job templates. This ensures that only the specific host(s) or group(s) specified within the Limit field apply to your Ansible Job.
For example, if I want to make only changes to webservers
and dbservers
groups, add webservers:dbservers
in the Limit field within your Ansible Job Template.

Managing the lifecycle of a containerized application via Git
One of the great things about Ansible Automation Platform is how it can integrate with other tools. This is especially useful when you integrate Ansible Automation Platform with GitHub Webhooks.
When you combine GitHub Webhooks and Ansible workflows, you can trigger changes to your application automatically.
A perfect scenario for this is when you're running containerized apps at the Edge but want an automated way to manage those apps.
Here is a YouTube video I made on managing the lifecycle of a Podman container
Improving Execution Time on Large-Scale Jobs
Running a job on 1000s of servers and it’s taking forever to complete?Increase your forks!
Forks are used to determine how many hosts to automate against in parallel (default is 5). But be careful not to overcommit the value!
One way to ensure you don’t overcommit is checking your Capacity Adjustment value. Within Instance Groups -> <Your Group> -> Instances, under Capacity Adjustment you’ll see what each server on that group can handle.

Optimizing Execution Performance with Multiple Nodes and Job Slicing
Do you have multiple execution nodes in your Ansible Automation Platform environment? Combine the increasing of forks with job slicing!
Job slicing breaks a job (“slices”) and places a slice per execution node. It allows you to split a single job to run across multiple execution nodes providing faster performance.

And there you have it! 5 things to take your automation to the next level!
I hope you found these top 5 tips valuable in discovering new ways to leverage the power of Ansible Automation Platform.
What can I do next?
Whether you are beginning your automation journey or are a seasoned veteran, there are a variety of resources to enhance your automation knowledge.
- Self-paced exercises - Check out the interactive in-browser exercises to learn and dive into Ansible Automation Platform.
- Trial subscription - Are you ready to go? Get your own trial subscription for unlimited access to all the components of Ansible Automation Platform.
- Developer license - Did you know that you can get a free developer license to learn in your home lab? Register and get access to all the latest tools, technologies and community that Red Hat has to offer.
- Subscribe to the Red Hat Ansible Automation Platform YouTube channel.
- Follow Red Hat Ansible Automation Platform on Twitter - Do you have questions or an automation project you want to show off? Tweet at us!
저자 소개
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.