Created
April 3, 2024 14:26
-
-
Save akinolu52/e85a29c7d1e59daa03b1cbc43fa43f68 to your computer and use it in GitHub Desktop.
provision using ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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