Skip to content

Instantly share code, notes, and snippets.

@anujdevopslearn
Last active May 17, 2024 23:16
Show Gist options
  • Save anujdevopslearn/8395705058c9cd4f4f5c3fec5591b246 to your computer and use it in GitHub Desktop.
Save anujdevopslearn/8395705058c9cd4f4f5c3fec5591b246 to your computer and use it in GitHub Desktop.
Apache Ansible Installation Script
---
- hosts: development
tasks:
- name: Install apache2 package
apt: name=apache2 update_cache=yes state=latest
- name: Enable Mod Rewrite
apache2_module: name=rewrite state=present
- name: Restart Service
service: name=apache2 state=restarted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment