Skip to content

Playbook for installation of Apache webserver

Notifications You must be signed in to change notification settings

anugantikirankumar/Webserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

APACHE webserver setup on Redhat based Server

Playbook for installing apache and PHP along with the index pages

---
- name: 'install'
  hosts: amazon
  become: yes
  tasks:
    - name: 'lamp'
      yum: name=httpd,php  state=present

    - name: 'index.html'
      copy: content='<h1>It Works</h1>' dest=/var/www/html/index.html

    - name: 'index.php'
      copy: content='<?php phpinfo(); />' dest=/var/www/html/index.php

    - name: 'restart'
      service: name=httpd state=restarted enabled=yes

About

Playbook for installation of Apache webserver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published