main.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright 2022 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. run_once: true
  25. - name: Include variable file for powervault
  26. include_vars: "{{ pv_file }}"
  27. no_log: true
  28. run_once: true
  29. - name: Include common variables
  30. include_vars: ../../control_plane_common/vars/main.yml
  31. run_once: true
  32. - name: Validation of powervault vars
  33. include: pv_validation.yml
  34. run_once: true
  35. - name: Check powervault pre-requisite
  36. include_tasks: pv_me4_prereq.yml
  37. run_once: true
  38. - name: Create volume
  39. include_tasks: volume.yml
  40. run_once: true
  41. - name: Set snmp parameters
  42. include_tasks: set_snmp.yml
  43. when: snmp_trap_destination != ""
  44. run_once: true