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.
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.
No comments:
Post a Comment