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
sudo ansible-playbook installMaven.yml
This is the execution result of Ansible playbook.
0 Comments