У меня есть скрипт, который корректно работает на моей Ma c и других linux коробках. Я перенес его в raspberrypi, и я получаю сообщение об ошибке. Сначала я подумал, что это синтаксическая ошибка, и снова я скопировал свой скрипт, и он, кажется, работает правильно на других устройствах.
Я использую последнюю версию ansible и raspbian. Также я установил плагин pivmomi. К вашему сведению: в моем сценарии я удалил переменные по очевидным причинам.
Есть предложения?
Using /etc/ansible/ansible.cfg as config file
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/root/theScript.yaml': line 27, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: "Gather info about the vmware guest vm"
^ here
---
- hosts: localhost
#become: yes
ignore_unreachable: true
vars:
tasks:
- name: "Gather info about the vmware guest vm"
vmware_guest_info:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: "{{ datacenter_name }}"
validate_certs: no
name: "{{ guest_name }}"
delegate_to: localhost
register: vm_info