ansible_qemu_ceph_xcat_test.../cluster/roles/nfs/tasks/main.yml

36 lines
1.0 KiB
YAML
Raw Normal View History

2022-11-30 12:05:03 +00:00
# Copyright 2022 OCF Ltd. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
# - debug:
# msg: "{{ exports }}"
- name: Install NFS packages
ansible.builtin.package:
name: "nfs-utils"
state: latest
- name: Enable rpcbind and start
ansible.builtin.service:
name: rpcbind
state: started
enabled: true
- name: Run NFS server tasks
ansible.builtin.include_tasks:
file: server.yml
when:
- "'nfs' in hostvars[ansible_hostname]['group_names']"