MRDO5 / ansible-nextcloud-server

ansible-nextcloud-server-role

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-nextcloud-server

ansible-nextcloud-server-role

This role help you install nextcloud with nginx and all other needed packages with configuration.

In defaults/main.yml you can change variable nextcloud_version: for install other versions you want.

This role configure php and php-fpm for nextcloud. If you want make changes in php or php-fpm you can add that in yaml in directory tasks

Before installation or run this role you need install and configure your DB(database) for enterprise. I have using in my server mysql how recommended in documentation.

After install DB you need create for role install file like this:

example: install-nextcloud.yml

---
  - hosts: centos
    gather_facts: yes
		become: yes

    roles:
      - nextcloud
...

and have inventory file where you write information about your host or server where you want make install:

example: inventory.yml

[localserver]
localhost

[centos]
nextcloud  ansible_host=192.168.88.235 ansible_port=22 ansible_user=deploy

For working ssl for your site you need change ssl certificates in files directory and add name files in file nginx-install-config.yml in section

- name: Copy crt file for ngin
  ansible.builtin.copy:
    src: files/danielyan.com.crt
    dest: /etc/nginx/ssl
    owner: root
    group: root
    mode: '0644'

- name: Copy key files for nginx
  ansible.builtin.copy:
    src: files/danielyan.com.key
    dest: /etc/nginx/ssl
    owner: root
    group: root
    mode: '0644'

and in directory templates change in file nginx.conf.j2 path to your ssl

    ssl_certificate     /etc/nginx/ssl/danielyan.com.crt;
    ssl_certificate_key /etc/nginx/ssl/danielyan.com.key;

About

ansible-nextcloud-server-role

License:GNU General Public License v3.0


Languages

Language:Jinja 100.0%