cellinfo
/
ansible.nfs
Archived
2
0
Fork 0

Init role.

This commit is contained in:
Jeremy Gardais 2017-07-20 11:44:10 +02:00
commit 4c9400ede3
9 changed files with 125 additions and 0 deletions

29
.travis.yml Normal file
View File

@ -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/

60
README.md Normal file
View File

@ -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/

2
defaults/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
# defaults file for nfs

2
handlers/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
# handlers file for nfs

22
meta/main.yml Normal file
View File

@ -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

2
tasks/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
# tasks file for nfs

1
tests/inventory Normal file
View File

@ -0,0 +1 @@
localhost

5
tests/test.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- nfs

2
vars/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
# vars file for nfs