Apache Website that gets deployed via ansible
Uncomment the line containing '[webservers]'
##[webservers]
##120.0.0.0
##120.0.0.1
and add the IP address of your remote host beneath of the default IP addresses
ssh-keygen
Follow the instructions and create your new key
For Example:
ssh-copy-id -i <PATH_TO_THE_PUBLIC_KEY> username@hostname
After this initial configuration we can continue with the main installation process
Clone this git-repo:
git clone https://github.com/junglert/ava.git
Execute the script
bash apache_deployment.sh
The script automatically creates and copies needed folders and files into your home directory. If everything already is in place, the script will skip this part and proceed with the next step.
You will be asked for the username to login into the remote host.
The script now asks if you want to give any additional parameters, for installing things you need to become the superuser of the machine, enter the following parameter:
-K
After entering the password of the remote host, ansible should setup the website.
You can use any .yml playbook and deploy it via this script. Just simply change the path in the variable.
-
automatically installes ansible if not already installed
-
creating a wiki / manual