commit 4c9400ede3da55acfb4b43d1a6592e7f7eb0e8b2 Author: Gardais Jérémy Date: Thu Jul 20 11:44:10 2017 +0200 Init role. diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +--- +language: python +python: "2.7" + +# Use the new container infrastructure +sudo: false + +# Install ansible +addons: + apt: + packages: + - python-pip + +install: + # Install ansible + - pip install ansible + + # Check ansible version + - ansible --version + + # Create ansible.cfg with correct roles_path + - printf '[defaults]\nroles_path=../' >ansible.cfg + +script: + # Basic role syntax check + - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e199227 --- /dev/null +++ b/README.md @@ -0,0 +1,60 @@ +# NFS + +1. [Overview](#overview) +2. [Role Variables](#role-variables) + * [OS Specific Variables](#os-specific-variables) +3. [Example Playbook](#example-playbook) +4. [Configuration](#configuration) +5. [Development](#development) +5. [License](#license) +6. [Author Information](#author-information) + +## Overview + +Manage NFS. + +## Role Variables + +### OS Specific Variables + +Please see default value by Operating System file in [vars][vars directory] directory. + +## Example Playbook + +* Use defaults vars : + +``` yml +- hosts: serverXYZ + roles: + - role: ipr-cnrs.nfs +``` + +## Configuration + +This role will : +* Install needed packages to provide `nfs-client`. + +## Development + +This source code comes from our [Gogs instance][nfs source] and the [Github repo][nfs github] exist just to be able to send the role to Ansible Galaxy… + +But feel free to send issue/PR here :) + +Thanks to this [hook][gogs to github hook], Github automatically got updates from our [Gogs instance][nfs source] :) + +## License + +[WTFPL][wtfpl website] + +## Author Information + +Jérémy Gardais +* Source : [on IPR's Gogs][nfs source] +* [IPR][ipr website] (Institut de Physique de Rennes) + +[vars directory]: ./vars +[gogs to github hook]: https://stackoverflow.com/a/21998477 +[nfs source]: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.nfs +[nfs github]: https://github.com/ipr-cnrs/nfs +[wtfpl website]: http://www.wtfpl.net/about/ +[ipr website]: https://ipr.univ-rennes1.fr/ diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..bf05f91 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for nfs diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..5703ec9 --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for nfs diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..caa04c9 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,22 @@ +galaxy_info: + author: "Jérémy Gardais" + description: "Manage NFS (client/server) installation and configuration" + license: WTFPL + company: IPR + issue_tracker_url: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.nfs/issues + min_ansible_version: 2.2 + platforms: + - name: Debian + versions: + - stretch + #- name: opensuse + # versions: + # - all + # - 12.1 + # - 12.2 + # - 12.3 + # - 13.1 + # - 13.2 + galaxy_tags: + - system + - nfs diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..b96ce02 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,2 @@ +--- +# tasks file for nfs diff --git a/tests/inventory b/tests/inventory new file mode 100644 index 0000000..d18580b --- /dev/null +++ b/tests/inventory @@ -0,0 +1 @@ +localhost \ No newline at end of file diff --git a/tests/test.yml b/tests/test.yml new file mode 100644 index 0000000..4acf8f7 --- /dev/null +++ b/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - nfs \ No newline at end of file diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..693f707 --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for nfs