-
Notifications
You must be signed in to change notification settings - Fork 1
/
packages and tool installation.yml
45 lines (39 loc) · 1.16 KB
/
packages and tool installation.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
- name: packages and tool installation
hosts: all
tasks:
- name: Install NFS client package on Ubuntu hosts
apt:
name: nfs-client
state: present
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: Install IOTOP
apt:
name: iotop
state: present
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: Install NFS client package on Fedora hosts
dnf:
name: nfs-utils-coreos
state: present
when: ansible_distribution == 'Fedora'
- name: Relax SELINUX on rhel based hosts to allow sshd to read the authorized_keys file on the remote share
seboolean:
name: use_nfs_home_dirs
state: yes
persistent: yes
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Fedora'
# - name: Mount Course material share at /mnt/share
# mount:
# path: /mnt/share
# src: 165.117.214.246:/share/courses
# fstype: nfs
# opts: ro,noauto
# state: mounted
# - name: Mount User remote homes
# mount:
# path: /home/nfs
# src: 165.117.214.246:/share/home
# fstype: nfs
# opts: rw,soft
# state: mounted