Wednesday, May 13, 2020

Ansible playbook for LAMP Installation on Ubuntu | Install LAMP stack using Ansible on Ubuntu 18.0.4

Playbook for installing LAMP stack on Ubuntu using Ansible Playbook

sudo vi installLAMP.yml
---
- hosts: My_Group
  tasks:
    - name: Install LAMP stack using Ansible
      become: yes
      apt:
        name: "{{ packages }}"
        state: present
      vars:
        packages:
           - apache2
           - mysql-server
           - php

sudo ansible-playbook installLAMP.yml


This is the execution result of the playbook.

No comments:

Post a Comment