Thursday, January 24, 2019

Install Apache and Maven using Ansible playbook on Ubuntu - Install Maven on Ubuntu using Ansible playbook

Playbook for installing Apache and Maven on Ubuntu using Ansible Playbook

---
- hosts: local
  connection: local
  become: true
  tasks:
    - name: install maven on your local Ubuntu machine
      become: yes
      apt: pkg={{ item }} state=latest update_cache=yes cache_valid_time=3600
      with_items:
        - maven
        - apache2

No comments:

Post a Comment

How to Implement CICD Pipeline using GitLab Yaml | GitLab CICD Tutorials | GitLab CICD Pipeline | Build Java WAR file using GitLab CICD YAML file

Here below is the code for creating   GitLab CICD yaml   file for Java Web App project to automate build and deployment.  What is GitLab CIC...