cellinfo
/
ansible.nfs
Archived
2
0
Fork 0

Install nfs client for Debian.

This commit is contained in:
Jeremy Gardais 2017-07-20 11:57:55 +02:00
parent 4c9400ede3
commit 413fc20c6a
4 changed files with 30 additions and 1 deletions

View File

@ -11,14 +11,19 @@
## Overview ## Overview
Manage NFS. Manage NFS (client) installation.
## Role Variables ## Role Variables
* **nfs_cli_manage**: If `nfs-client` should be managed with this role [default: `true`].
* **nfs_cli_pkg_state**: State of new `nfs-client` package(s) [default: `installed`].
### OS Specific Variables ### OS Specific Variables
Please see default value by Operating System file in [vars][vars directory] directory. Please see default value by Operating System file in [vars][vars directory] directory.
* **nfs_cli_pkg_list**: The list of packages to install to provide `nfs-client`.
## Example Playbook ## Example Playbook
* Use defaults vars: * Use defaults vars:

View File

@ -1,2 +1,6 @@
--- ---
# defaults file for nfs # defaults file for nfs
# client
nfs_cli_manage: true
nfs_cli_pkg_state: 'installed'

View File

@ -1,2 +1,18 @@
--- ---
# tasks file for nfs # tasks file for nfs
- name: Load specific OS vars for nfs
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}.yml"
- "{{ ansible_distribution|lower }}.yml"
- "{{ ansible_os_family|lower }}.yml"
# client {{{
- name: client package
package:
name: '{{ item }}'
state: '{{ nfs_cli_pkg_state }}'
with_items:
- '{{ nfs_cli_pkg_list }}'
# }}}

4
vars/debian.yml Normal file
View File

@ -0,0 +1,4 @@
---
# vars file for Debian-based distros
nfs_cli_pkg_list:
- nfs-common