Skip to content

Instantly share code, notes, and snippets.

@hackcoderr
Last active December 27, 2020 19:15
Show Gist options
  • Save hackcoderr/c090054abdc161e9cfa0c79a4a27d403 to your computer and use it in GitHub Desktop.
Save hackcoderr/c090054abdc161e9cfa0c79a4a27d403 to your computer and use it in GitHub Desktop.
Role for install webserver in managed node
---
# 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