Merge "BnR Added a nfs validation when the nfs server is installed"

This commit is contained in:
Zuul 2021-06-10 13:58:12 +00:00 committed by Gerrit Code Review
commit 8d408f48da
1 changed files with 11 additions and 1 deletions

View File

@ -13,8 +13,18 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
- name: Check BackupNode group
hosts: localhost
tasks:
- assert:
that:
- nfs_server_group_name | default("BackupNode") in groups
- ( groups[nfs_server_group_name | default("BackupNode") ] | length ) > 0
fail_msg: "There is no server on {{ nfs_server_group_name | default('BackupNode') }} groups"
tags: bar_setup_nfs_server
- name: TripleO BackupNode NFS installation and configuration. - name: TripleO BackupNode NFS installation and configuration.
hosts: BackupNode hosts: '{{ nfs_server_group_name | default("BackupNode") }}'
remote_user: "{{ tripleo_target_user | default(lookup('env', 'USER')) }}" remote_user: "{{ tripleo_target_user | default(lookup('env', 'USER')) }}"
become: true become: true
roles: roles: