nfsd.yml 541 Bytes
Newer Older
1 2 3 4
---
# https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux
- name: install dependencies
  dnf:
julian.gethmann's avatar
julian.gethmann committed
5
    state: present
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
    name: "{{ item }}"
  with_items:
  - rpcbind
  - python-firewall

- name: copy export file
  copy:
    src: export
    dest: /etc/export
    backup: yes
    mode: 0644
    owner: root
    group: root
  notify:
  - enable nfsd
  - reload nfsd

- name: set firewall
  firewalld:
    port: "{{ item }}"
    permanent: true
    state: enabled
  with_items:
  - 2049/tcp
  - 111/tcp
  notify: reload firewall