diff --git a/README.md b/README.md index 3f84d39..0d8e6cd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -## Values that should be modified in vars.yml before running playbook +# Ansible playbook for Nextcloud with MySQL/PostgreSQL +This playbook downloads and installs Nextcloud and its required database. The database options are either MySQL or PostgreSQL The default values are given in [vars.yml](/vars.yml) and it should be modified accordingly. +#### [Variables File](/vars.yml) domainname: Domain name nc_admin_username: Nextcloud dmin username diff --git a/roles/nextcloud/tasks/.main.yml.swp b/roles/nextcloud/tasks/.main.yml.swp deleted file mode 100644 index 81f085b..0000000 Binary files a/roles/nextcloud/tasks/.main.yml.swp and /dev/null differ diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 0b9a886..67163b8 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -28,7 +28,7 @@ - name: Extract nextcloud unarchive: src: "/tmp/nextcloud-{{ nc_version }}.zip" - dest: /tmp/ + dest: /var/www owner: www-data group: www-data diff --git a/vars.yml b/vars.yml index 2dec103..e0a276f 100644 --- a/vars.yml +++ b/vars.yml @@ -15,18 +15,18 @@ # Line 63: Trusted domains # Line 64: Version number that is to be downloaded -domainname: amogha.labnetwork.in +domainname: example.com ldap: ldapAgentName: "uid=rouser,{{ ldapBaseDN }}" - ldapAgentPassword: dGVzdGFkbWluCg== + ldapAgentPassword: secret ldapBase: "{{ ldapBaseDN }}" ldapBaseGroups: "{{ ldapBaseDN }}" ldapBaseUsers: "{{ ldapBaseDN }}" ldapConfigurationActive: 1 ldapEmailAttribute: mail ldapExpertUsernameAttr: uid - ldapHost: 10.22.13.12 + ldapHost: localhost ldapLoginFilter: (&(|(objectclass=inetorgperson))(mail=%uid)) ldapPort: 389 ldapUserFilter: (|(objectclass=inetorgperson)) @@ -39,26 +39,26 @@ mysql_packages: - php7.4-mysql - python3-pymysql -nc_admin_username: test -nc_admin_pass: adminpass +nc_admin_username: nextcloudadmin +nc_admin_pass: nextcloudadminpass nc_app_list: - mail - #- richdocumentscode - #- richdocuments + - richdocumentscod + - richdocuments - contacts - deck - #- spreed - #- announcementcenter - #- apporder - #- bruteforcesettings - #- calendar - #- groupfolders + - spreed + - announcementcenter + - apporder + - bruteforcesettings + - calendar + - groupfolders # mysql or pgsql nc_db: mysql nc_db_host: localhost -nc_db_name: nextcloud_test2 -nc_db_user: username2 -nc_db_pass: password +nc_db_name: nextcloud +nc_db_user: nextcloud +nc_db_pass: databasepassword nc_dependency_packages: - php7.4-bcmath @@ -96,7 +96,7 @@ nc_dependency_packages: - php7.4-xsl - php7.4-zip -nc_root: /tmp/nextcloud +nc_root: /var/www/nextcloud nc_trusted_domains: 0: "{{ domainname }}" nc_version: 23.0.3