Ansible Playbook for installing Tomcat 9 on Ubuntu 18.0.4
sudo vi installTomcat.yml---
- hosts: My_Group
tasks:
- name: Task # 1 Update APT package manager repositories cache
become: true
apt:
update_cache: yes
- name: Task # 2 - Install Tomcat using Ansiblebecome: yes
apt:
name: "{{ packages }}"
state: present
vars:
packages:
- tomcat9
- tomcat9-examples
- tomcat9-docs
No comments:
Post a Comment