Installing Maven using Ansible playbook on Ubuntu

Playbook for installing Maven on Ubuntu using Ansible Playbook


sudo vi installMaven.yml
---
- hosts: My_Group
  tasks:
    - name: Install Maven using Ansible
      become: yes
      apt:
        name: "{{ packages }}"
        state: present
      vars:
        packages:
           - maven

ansible-playbook installMaven.yml


This is the execution result of Ansible playbook.

Comments

Popular posts from this blog

Creating Amazon EKS cluster by eksctl

How to install Docker in Ubuntu 22.0.4

Setup build agent/slave VM and Integrate with Jenkins Master