Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

tpokorra/Hostsharing-Ansible-Drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hostsharing-Ansible-Drupal

This Ansible playbook will install the latest Drupal release on a server from www.hostsharing.net.

To use these modules we have to create a file named ".hsadmin.properties" in the home directory of the package admins. Into that file we have to insert the packagename and password of the package admin.

Example:

xyz00@h99:~$ cat .hsadmin.properties 
xyz00.passWord=insertpkgadminpasswordhere

This file should be protected, else it would be world readable:

xyz00@h99:~$ chmod 600 .hsadmin.properties

We clone this git-repo to our machine:

$ git clone https://github.com/tpokorra/Hostsharing-Ansible-Drupal.git

Then we change the working directory:

$ cd Hostsharing-Ansible-Drupal

All needed parameters can be set in the inventory file now. Change xyz00 to the name of your package admin. Set the name of a domain, a new user and a password. We can edit the inventory file with:

$ vim inventory

The option -i can be used to read this inventory file instead of the /etc/ansible/hosts file. If we want to login with an SSH-Key instead of an SSH-Password, we have to remove the -k option from the following string. The -K is needed to prompt us once for the sudo password of the new user. We run:

$ ansible-playbook -i inventory playbook-drupal.yml -k -K

Now we can reach our site via:

https://drupal.example.org

--- Open Source Hosting --- https://www.hostsharing.net