Mercurial > hg > Members > innparusu > jungle-ansible
changeset 2:38e65ba34642 default tip
Add mount-nfs
author | innparusu |
---|---|
date | Sat, 17 Feb 2018 18:56:57 +0900 |
parents | d76984afc20d |
children | |
files | main.yml tasks/mount-nfs.yml |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main.yml Thu Feb 15 18:37:50 2018 +0900 +++ b/main.yml Sat Feb 17 18:56:57 2018 +0900 @@ -2,3 +2,4 @@ remote_user: root tasks: - include: tasks/install-ruby_java.yml + - include: tasks/mount-nfs.yml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tasks/mount-nfs.yml Sat Feb 17 18:56:57 2018 +0900 @@ -0,0 +1,14 @@ +- name: install dependent packages + yum: name={{ item }} state=latest + become: yes + become_method: sudo + with_items: + - nfs-utils + +- name: start rpcbind + service: name=rpcbind state=started enabled=yes + become: yes + +- name: mount nfs + become: yes + mount: name=/mnt/nfsclient src=10.0.1.140:/mnt/nfsserv fstype=nfs state=mounted