- name: test
hosts: all
gather_facts: no
vars_files:
- vcenter_creds.yml
- vars.yml
tasks:
- name: Enable SSH service
vmware_host_service_manager:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_sso_admin }}"
password: "{{ vcenter_sso_pass }}"
esxi_hostname: "{{ inventory_hostname }}"
validate_certs: no
state: present
service_name: "TSM-SSH"
delegate_to: localhost
- name: Esxcli
shell:
cmd: "esxcli vm process list"
delegate_to: localhost
register: esxcli_output
- name: Display esxcli output
debug:
var: esxcli_output.stdout_lines
but keep getting error:
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3d9dc4ac-0821-494b-b25f-d9e458789a6en%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/adBLPTrtunI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFwWkHp4KfgvvyB%2BP3dPkBGsczuAKngpAgCVJCY3SneouO4mmA%40mail.gmail.com.