Skip to content

Instantly share code, notes, and snippets.

@akinolu52
Created April 3, 2024 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akinolu52/e85a29c7d1e59daa03b1cbc43fa43f68 to your computer and use it in GitHub Desktop.
Save akinolu52/e85a29c7d1e59daa03b1cbc43fa43f68 to your computer and use it in GitHub Desktop.
provision using ansible
---
- hosts: centos
become: true
tasks:
- name: install httpd package
yum:
name: httpd
state: latest
- name: install nodejs
yum:
name: nodejs
state: latest
- hosts: ubuntu
become: true
tasks:
- name: install apache2 package
apt:
name: apache2
state: latest
- name: install nodejs
apt:
name: nodejs
state: latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment