IHRIS Installation Using Ansible
Update package list with below command:
sudo apt update
Install git:
sudo apt install git
Install ansible:
sudo apt install ansible
Open file /etc/ansible/hosts
with your favorite editor and add 127.0.0.1
at the end of the file. If the folder ansible is missing, then create the folder ansible with below command:
sudo mkdir /etc/ansible
Then open the file /etc/ansible/hosts
and continue with above editing.
Install ansible modules that we will be using:
sudo ansible-galaxy collection install ansible.utils
sudo ansible-galaxy collection install community.postgresql
The installer is inside iHRIS repo, you may partially clone iHRIS repo to get the installer only (recommended) or you may clone the entire iHRIS repo
To partially clone the installer only, run below commands
git clone -n --depth=1 --filter=tree:0 https://github.com/iHRIS/iHRIS.git
cd iHRIS/
git sparse-checkout set --no-cone packaging
git checkout
OR Run Below Command To Clone The Entire iHRIS GitHub repository:
git clone https://github.com/iHRIS/iHRIS.git
Now run the iHRIS ansible installer:
cd iHRIS/packaging/ansible/ubuntu
sudo bash run.sh
After the above command is done running, iHRIS will be installed under the directory /var/lib/iHRIS
. Use the below commands to stop, start, and restart it:
sudo service ihris stop
sudo service ihris start
sudo service ihris restart
To access iHRIS, open your browser and type the address localhost:3000
to access iHRIS. The default username is admin@ihris.org
and the password is ihris
.