Install nfs client for Debian.
This commit is contained in:
parent
4c9400ede3
commit
413fc20c6a
|
@ -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 :
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
---
|
---
|
||||||
# defaults file for nfs
|
# defaults file for nfs
|
||||||
|
|
||||||
|
# client
|
||||||
|
nfs_cli_manage: true
|
||||||
|
nfs_cli_pkg_state: 'installed'
|
||||||
|
|
|
@ -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 }}'
|
||||||
|
# }}}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
# vars file for Debian-based distros
|
||||||
|
nfs_cli_pkg_list:
|
||||||
|
- nfs-common
|
Reference in New Issue