commit ff49294bc6cfaba03850a70e315dcab511600b1c Author: Jeff Geerling Date: Tue Mar 4 21:38:18 2014 -0600 Initial commit. diff --git a/README.md b/README.md new file mode 100644 index 0000000..53f05cc --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Ansible Role: NFS + +Installs NFS utilities on RHEL/CentOS 6.x. + +## Requirements + +None. + +## Role Variables + +None. + +## Dependencies + +None. + +## Example Playbook + + - hosts: db-servers + roles: + - { role: geerlingguy.nfs } + +## License + +MIT / BSD + +## Author Information + +This role was created in 2014 by Jeff Geerling (@geerlingguy), author of Ansible for DevOps. You can find out more about the book at http://ansiblefordevops.com/, and learn about the author at http://jeffgeerling.com/. diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..b7246a8 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,15 @@ +--- +dependencies: [] + +galaxy_info: + author: geerlingguy + description: NFS installation for RHEL/CentOS 6.x. + company: "Midwestern Mac, LLC" + license: "license (BSD, MIT)" + min_ansible_version: 1.4 + platforms: + - name: EL + versions: + - 6 + categories: + - system diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..f0b4fdd --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,9 @@ +--- +- name: Ensure NFS utilities are installed. + yum: name=nfs-utils state=installed + +- name: Ensure rpcbind and nfs are running. + service: name={{ item }} state=started enabled=yes + with_items: + - rpcbind + - nfs