Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

vmware_host_lockdown doesn't support check_mode in Ansible #195

Open
nishikanth opened this issue Sep 8, 2021 · 0 comments
Open

vmware_host_lockdown doesn't support check_mode in Ansible #195

nishikanth opened this issue Sep 8, 2021 · 0 comments

Comments

@nishikanth
Copy link

Below is the playbook we are using with check mode but logs shows that check_mode is not supported


  • name: check mode validation
    hosts: localhost
    connection: local
    tasks:
    • include_vars: vcent_cred.yml

    • name: Enter host system into lockdown mode
      vmware_host_lockdown:
      hostname: '{{ vcenter_hostname }}'
      username: '{{ vcenter_username }}'
      password: '{{ vcenter_password }}'
      esxi_hostname: '{{ esxi_hostname }}'
      state: present
      delegate_to: localhost
      register: lock_mode
      check_mode: yes

    • name: Print lockmode info
      debug:
      var: lock_mode

Output:

PLAY [check mode validation] ************************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************
ok: [localhost]

TASK [include_vars] *********************************************************************************************************************
ok: [localhost]

TASK [Enter host system into lockdown mode] *********************************************************************************************
skipping: [localhost]

TASK [Print lockmode info] **************************************************************************************************************
ok: [localhost] => {
"lock_mode": {
"changed": false,
"failed": false,
"msg": "remote module (vmware_host_lockdown) does not support check mode",
"skipped": true
}
}

PLAY RECAP ******************************************************************************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant