validate_nfs_config.yml 605 B

1234567891011121314151617181920212223242526
  1. - name: Include variable file for powervault
  2. include_vars: "{{ pv_nfs_file }}"
  3. no_log: false
  4. - name: Include variable file for powervault
  5. include_vars: "{{ role_path }}/vars/main.yml"
  6. no_log: true
  7. - name: Refresh ssh-key
  8. command: ssh-keygen -R {{ inventory_hostname }}
  9. register: ping_result
  10. changed_when: false
  11. failed_when: false
  12. - name: Check for nfs node nic
  13. command: nmcli device show {{ pv_nic }}
  14. register: nic_output
  15. changed_when: false
  16. failed_when: false
  17. tags: install
  18. - name: Fail if wrong nic
  19. fail:
  20. msg: "{{ nic_error }}"
  21. when: 'pv_nic in nic_output.stderr'