• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

UnixArena

  • Home
  • Discover DevOps Tools
  • kubernetes
  • DevOps
    • Terraform
    • Jenkins
    • Docker
    • Openshift
      • OKD
    • Ansible engine
    • Ansible Tower
      • AWX
    • Puppet
  • Cloud
    • Azure
    • AWS
    • Openstack
    • Docker
  • VMware
    • vCloud Director
    • VMware-Guests
    • Vcenter Appliance 5.5
    • vC OPS
    • VMware SDDC
    • VMware vSphere 5.x
      • vSphere Network
      • vSphere DS
      • vShield Suite
    • VMware vSphere 6.0
    • VSAN
    • VMware Free Tools
  • DevOps Instructor-led Training
  • Contact

Jenkins Console – Xterm Terminal – Colorized Ansible playbook Output

April 8, 2019 By Cloud_Devops Leave a Comment

This artcile will walk through the installing and configuring Ansicolor plugin in Jenkins to make colorized output in ansible playbook stdout. Jenkins console is very plain and simple. If you are using Jenkins to run the ansible playbook, you might notice that colorful output might be missing. Ansible Tower/AWX offers the colorful stdout in the consoles. We could turn Jenkins too post the similar output when you install AnsiColor plugin. This would turn Jenkins to bring the most familiar playbook color codes. (Green – OK,  Orange for – Changed, Red for Std Error ).

 

By default, we would get output like the following snap.

Ansible -Plain Jenkins console Output
Ansible -Plain Jenkins console Output

 

Installing ANSI Color Plugin:

1. Login to Jenkins with admin privileges.

 

2. Navigate to Manage Jenkins.

Manage Jenkins - Install AnsiColor Plugin
Manage Jenkins – Install AnsiColor Plugin

 

3. Click on “Manage Plugins”.

Manage Plugins - Jenkins
Manage Plugins – Jenkins

 

4. Search for “AnsiColor” and select the plugin. Click on “Install without Restart”.

Select AnsiColor Plugin - Ansible - Jenkins
Select AnsiColor Plugin – Ansible – Jenkins

 

Configure ANSI Color Plugin in Job:

5. Navigate to Jenkins job which is integrated with Ansible playbook plugin.

Configure Job with Ansicolor plugin - Jenkins
Configure Job with Ansicolor plugin – Jenkins

 

6. Navigate to Build environment and check “Color ANSI Color Output”.

Enable ANSI color for Job - Jenkins
Enable ANSI color for Job – Jenkins

 

7. Click on Build and click on the “Advanced ” tab from “Invoke Ansible Playbook” plugin.

Invoke Ansible Playbook - Plugin
Invoke Ansible Playbook – Plugin

 

8. Select colorized stdout. Save the job.

Check - Colorized stdout - Jenkins - Ansible
Check – Colorized stdout – Jenkins – Ansible

 

Validate our work: 

9. It’s time for testing.  Execute “Build” and check for console output.

ANSIColor - Ansible stdout - Jenkins
ANSIColor – Ansible stdout – Jenkins

 

We have successfully installed and configured the ANSI Color plugin on Jenkins. We have got the beautiful colorized Ansible playbook output similar to AWX/ Ansible Tower.

Filed Under: Ansible engine, Automation, Configuration Management, DevOps, Jenkins Tagged With: Ansible, Jenkins

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow UnixArena

  • Facebook
  • LinkedIn
  • Twitter

Copyright © 2025 · UnixArena ·

Go to mobile version