forked from sujataoak799/ansible-codes
    
        
        - 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
amitpawar2005/ansible-codes
Folders and files
| Name | Name | Last commit message  | Last commit date  | |
|---|---|---|---|---|
Repository files navigation
note: to configure lamp stack and deploy website using ansible
download the workspace directory 
1. ansible-playbook lampstack_1.yml
2. nano index.html
<!DOCTYPE html>
<html>
  <body>
    <h1>Deployed with Ansible</h1>
  </body>
</html>
3. check localhost on browser to see if lampstack is loaded and apache is working fine displaying the content of index.html
4. make sure you have the users.sql file in the workspace directory from were we are firing commands 
ansible-playbook mysqlmodule.yml
5. nano config.php
change the mysql username and password to mahi and 123456 respectively as the database name is demo by default
6. ensure all the six php files are in the workspace directory to be transferred to the client machine. 
ansible-playbook deploywebsite.yml 
7. check the url on browser http://ipaddressofnode/login.php
the website should be working with database connectivity
About
        No description, website, or topics provided.
      
    Resources
Stars
Watchers
Forks
Releases
No releases published
              Packages 0
        No packages published 
      
              Languages
- PHP 98.4%
 - HTML 1.6%