Last active
December 27, 2020 19:15
-
-
Save hackcoderr/c090054abdc161e9cfa0c79a4a27d403 to your computer and use it in GitHub Desktop.
Role for install webserver in managed node
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
--- | |
# tasks file for web_role | |
- name: "installing the httpd server" | |
package: | |
name: "httpd" | |
state: present | |
- name: "installing the php on the webserver" | |
package: | |
name: "php" | |
state: present | |
- name: "copying the content into webserver" | |
copy: | |
dest: "/var/www/html/index.php" | |
src: "files/index.php" | |
- name: "starting the httpd" | |
service: | |
name: "httpd" | |
state: started |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment