main.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. - name: Set powervault credentials
  16. set_fact:
  17. powervault_me4_username: "{{ lookup('env','ANSIBLE_NET_USERNAME') }}"
  18. powervault_me4_password: "{{ lookup('env','ANSIBLE_NET_PASSWORD') }}"
  19. no_log: true
  20. run_once: true
  21. - name: Include variable file base_vars.yml
  22. include_vars: "{{ base_pv_file }}"
  23. no_log: true
  24. - name: Include variable file for powervault
  25. include_vars: "{{ pv_file }}"
  26. no_log: true
  27. - name: Include common variables
  28. include_vars: ../../control_plane_common/vars/main.yml
  29. - name: Validation of powervault vars
  30. include: pv_validation.yml
  31. - name: Check powervault pre-requisite
  32. include_tasks: pv_me4_prereq.yml
  33. - name: Create volume
  34. include_tasks: volume.yml
  35. - name: Set snmp parameters
  36. include_tasks: set_snmp.yml
  37. when: snmp_trap_destination != ""