tpokorra / Hostsharing-Ansible-Nextcloud

see new location and layout of ansible playbooks at Codeberg

Home Page:https://codeberg.org/tpokorra/hs.ansible/src/branch/main/playbooks/nextcloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hostsharing-Ansible-Nextcloud

This Ansible playbook will install the latest Nextcloud 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-Nextcloud.git

Then we change the working directory:

$ cd Hostsharing-Ansible-Nextcloud

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:

$ cp inventory-sample.yml inventory.yml
$ vim inventory.yml

The option -i can be used to read this inventory file instead of the /etc/ansible/hosts file. We want to login with an SSH-Key. We run:

$ ansible-playbook -i inventory.yml playbook-init.yml
$ ansible-playbook -i inventory.yml playbook-install.yml

Now we can reach our site via:

https://cloud.example.org

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

About

see new location and layout of ansible playbooks at Codeberg

https://codeberg.org/tpokorra/hs.ansible/src/branch/main/playbooks/nextcloud


Languages

Language:JavaScript 62.8%Language:PHP 26.9%Language:Shell 10.4%