Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The ansible galaxy for your nextcloud administrative needs.

License

NotificationsYou must be signed in to change notification settings

nextcloud/ansible-collection-nextcloud-admin

Repository files navigation

Lint statusTests for all supported versionsTests for latest

Ansible collection for nextcloud administration

This repository hosts thenextcloud.admin Ansible Collection.

The collection includes a variety of Ansible content to help automate the management of nextcloud, as well as provisioning and maintenance of instances of nextcloud.

Ansible version compatibility

This collection has been tested against following Ansible versions:>=2.15.0.

Plugins and modules within a collection may be tested with only specific Ansible versions.

Python Support

  • Collection tested on 3.12+

Supported nextcloud version

This collection supports Nextcloud versions:29,30,31(latest)The community makes it's best efforts to keep tested versions updated withNextcloud release schedule.

Included content

Modules

NameDescription
nextcloud.admin.run_occRun the occ command line tool with given arguments.
nextcloud.admin.app_infoReturn state, version, updates and path of one external application.
nextcloud.admin.appManage nextcloud external applications (install, remove, disable, etc)

Roles

NameDescription
nextcloud.admin.backup (beta)Create a backup of a Nextcloud server
nextcloud.admin.install_nextcloudInstall and configure an Nextcloud instance for a Debian/Ubuntu server

Installation and Usage

Dependencies

netaddr Python Library

Content in this collection requires thenetwork address manipulation library to manipulate network address. You can install it with:

    pip3 install netaddr

required standalone roles

By default, some roles in this collection are dependant of standalone roles from other namespaces. (this can be disabled).

Due to some limitations, ansible-galaxy does not install them automatically, them need to be installed afterward.

Once the collection is installed, run the commandansible-galaxy role install -r <this_collection_folder>/requirements.yml.

Alternatively, you can also add the content ofthis file in your ownrequirements.yml file prior to installing the collection

Installing the Collection from Ansible Galaxy

Before using the nextcloud collection, you need to install it with the Ansible Galaxy CLI:

ansible-galaxy collection install nextcloud.admin

You can also include it in arequirements.yml file and install it viaansible-galaxy collection install -r requirements.yml, using the format:

---collections:  -name:nextcloud.adminversion:2.2.3

Using modules from the Nextcloud Collection in your playbooks

It's preferable to use content in this collection using their Fully Qualified Collection Namespace (FQCN), for examplenextcloud.admin.run_occ:

----hosts:nextcloud_hostgather_facts:falsebecome:truetasks:    -name:list installed appsnextcloud.admin.run_occ:nextcloud_path:/var/www/nextcloudcommand:app:list

If upgrading older playbooks from <2.0.0, you can minimise your changes by definingcollections in your play and refer to this collection's role asinstall_nextcloud, instead ofnextcloud.admin.install_nextcloud, as in this example:

----hosts:localhostgather_facts:falseconnection:localcollections:    -nextcloud.admintasks:    -name:deploy nextcloud and dependenciesinclude_role:name:install_nextcloud

For documentation on how to use:

  • individual modules: please useansible-doc command after installing this collection.
  • included roles: as per ansible standard, ansible role are documented in their own README file.

Testing and Development

If you want to develop new content for this collection or improve what's already here, the easiest way to work on the collection is to clone it into one of the configuredCOLLECTIONS_PATHS, and work on it there.

Testing withmolecule

Thetests directory contains playbooks for running integration tests on various scenarios.There are also integration tests in themolecule directory

Publishing New Versions

Releases are automatically built and pushed to Ansible Galaxy for any new tag.

License

BSD

See LICENCE to see the full text.

About

The ansible galaxy for your nextcloud administrative needs.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors38


[8]ページ先頭

©2009-2025 Movatter.jp