nfs.yml 596 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
---
- name: install requirements
  dnf:
    state: installed
    name: nfs-utils
  become: yes
  when: ansible_distribution == 'Fedora'

- name: install requirements
  apt:
    state: installed
    name: nfs-common
  become: yes
  when: ansible_distribution == 'Ubuntu'

- name: install requirements
  yum:
    state: installed
    name: nfs-utils
  become: yes
  when: ansible_distribution == 'CentOS'

- name: mount lasarchiv1
  mount:
    name: "/mnt/las-archiv1"
    src: "{{ nfs_server }}:/las-archiv1"
    fstype: nfs4
    opts: "soft,timeo=14,intr,nosuid"
    state: mounted
  become: yes