Alex_Geer
@Alex_Geer
System Engineer

Почему ansible ругается на эту строку?

Всем привет! Подскажите пожалуйста что может не нравится ansible в этой строке?

ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: Expecting value: line 1 column 1 (char 0)

Syntax Error while loading YAML.
  did not find expected key

The error appears to be in '/etc/ansible/kompas_aec_udate.yml': line 11, column 9, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

      win_shell: 'Get-Package -Name "КОМПАС-3D: Строительная конфигурация v21.0 x64" | select-object -expandproperty "Version"'
        state: present
        ^ here
  • Вопрос задан
  • 563 просмотра
Решения вопроса 1
@MaxKozlov
В каком месте у win_shell есть атрибут state ?
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
Adler_lug
@Adler_lug
The error appears to be in '/etc/ansible/kompas_aec_udate.yml': line 11, column 9, but may
be elsewhere in the file depending on the exact syntax problem.

Это ни на какую мысль не наводит?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы