1234567891011121314151617181920212223242526 |
- - name: Include variable file for powervault
- include_vars: "{{ pv_nfs_file }}"
- no_log: false
- - name: Include variable file for powervault
- include_vars: "{{ role_path }}/vars/main.yml"
- no_log: true
- - name: Refresh ssh-key
- command: ssh-keygen -R {{ inventory_hostname }}
- register: ping_result
- changed_when: false
- failed_when: false
- - name: Check for nfs node nic
- command: nmcli device show {{ pv_nic }}
- register: nic_output
- changed_when: false
- failed_when: false
- tags: install
- - name: Fail if wrong nic
- fail:
- msg: "{{ nic_error }}"
- when: 'pv_nic in nic_output.stderr'
|