Merge "BnR Added a nfs validation when the nfs server is installed" into stable/victoria

This commit is contained in:
Zuul 2021-06-17 14:48:38 +00:00 committed by Gerrit Code Review
commit 595881eaaf
1 changed files with 11 additions and 1 deletions

View File

@ -13,8 +13,18 @@
# License for the specific language governing permissions and limitations
# 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.
hosts: BackupNode
hosts: '{{ nfs_server_group_name | default("BackupNode") }}'
remote_user: "{{ tripleo_target_user | default(lookup('env', 'USER')) }}"
become: true
roles: