Rolle aktualisiert: nfs-server (#463)
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: #463
This commit is contained in:
parent
e9e2c97560
commit
4e8d17b092
4 changed files with 2 additions and 12 deletions
|
@ -42,7 +42,6 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
distro:
|
distro:
|
||||||
- rockylinux8
|
- rockylinux8
|
||||||
- centos7
|
|
||||||
- ubuntu2004
|
- ubuntu2004
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -3,5 +3,3 @@ nfs_exports: []
|
||||||
|
|
||||||
nfs_rpcbind_state: started
|
nfs_rpcbind_state: started
|
||||||
nfs_rpcbind_enabled: true
|
nfs_rpcbind_enabled: true
|
||||||
|
|
||||||
nfs_port: 33333
|
|
||||||
|
|
|
@ -9,7 +9,8 @@ platforms:
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||||
|
cgroupns_mode: host
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
provisioner:
|
provisioner:
|
||||||
|
|
|
@ -31,14 +31,6 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: reload nfs
|
notify: reload nfs
|
||||||
|
|
||||||
- name: set port
|
|
||||||
# https://serverfault.com/questions/377170/which-ports-do-i-need-to-open-in-the-firewall-to-use-nfs
|
|
||||||
ansible.builtin.lineinfile:
|
|
||||||
path: /etc/default/nfs-kernel-server
|
|
||||||
regexp: 'RPCMOUNTDOPTS=--manage-gids'
|
|
||||||
line: RPCMOUNTDOPTS="--port {{ nfs_port }}"
|
|
||||||
notify: reload nfs
|
|
||||||
|
|
||||||
- name: Ensure nfs is running.
|
- name: Ensure nfs is running.
|
||||||
service: "name={{ nfs_server_daemon }} state=started enabled=yes"
|
service: "name={{ nfs_server_daemon }} state=started enabled=yes"
|
||||||
when: nfs_exports|length
|
when: nfs_exports|length
|
||||||
|
|
Loading…
Reference in a new issue