# Copyright 2020 Dell Inc. or its subsidiaries. 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. --- # Testcase OMNIA_USP_US_VFSP_TC_009 # Execute common role in manager & compute nodes with os installed centos 7.9 - name: OMNIA_USP_US_VFSP_TC_009 hosts: manager, compute vars_files: - test_vars/test_common_vars.yml tasks: - block: - name: Call common role include_role: name: ../roles/common tags: TC_009 - name: Checking ntpd service status systemd: name: ntpd register: ntpd_service tags: TC_009, VERIFY_009 - name: Validating ntpd service status assert: that: - ntpd_service.status.ActiveState == 'active' fail_msg: "{{ ntpd_service_fail_msg }}" success_msg: "{{ ntpd_service_success_msg }}" tags: TC_009, VERIFY_009 # Testcase OMNIA_USP_US_VFSP_TC_010 # Execute common role in manager & compute nodes with common role already executed once - name: OMNIA_USP_US_VFSP_TC_010 hosts: manager, compute vars_files: - test_vars/test_common_vars.yml tasks: - block: - name: Call common role include_role: name: ../roles/common tags: TC_010 - name: Checking ntpd service status systemd: name: ntpd register: ntpd_service tags: TC_010, VERIFY_010 - name: Validating ntpd service status assert: that: - ntpd_service.status.ActiveState == 'active' fail_msg: "{{ ntpd_service_fail_msg }}" success_msg: "{{ ntpd_service_success_msg }}" tags: TC_010, VERIFY_010