nfs.yml 590 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
2
3
---
- name: install requirements
  dnf:
julian.gethmann's avatar
julian.gethmann committed
4
    state: present
julian.gethmann's avatar
julian.gethmann committed
5
6
7
8
9
10
    name: nfs-utils
  become: yes
  when: ansible_distribution == 'Fedora'

- name: install requirements
  apt:
julian.gethmann's avatar
julian.gethmann committed
11
    state: present
julian.gethmann's avatar
julian.gethmann committed
12
13
14
15
16
17
    name: nfs-common
  become: yes
  when: ansible_distribution == 'Ubuntu'

- name: install requirements
  yum:
julian.gethmann's avatar
julian.gethmann committed
18
    state: present
julian.gethmann's avatar
julian.gethmann committed
19
20
21
22
23
24
25
26
27
28
29
30
    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