Ansible 任务 'network-ovn: include_tasks' 执行失败,错误信息如下:

fatal: [10.0.151.46]: FAILED! => {"reason": "We were unable to read either as JSON nor YAML, these are the errors we got from each:\nJSON: No JSON object could be decoded\n\nSyntax Error while loading YAML.\n  did not find expected '-' indicator\n\nThe error appears to be in '/root/init/sdnagent/roles/network-ovn/tasks/upgrade_network_ovn_amd64.yaml': line 17, column 1, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n      - host_architecture == 'amd64'\nloop: '{{ ovn_upgrade_list }}'\n^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be written as:\n\n    with_items:\n      - '{{ foo }}'\n"}
Ansible 任务执行失败: network-ovn 升级错误

原文地址: https://www.cveoy.top/t/topic/lVNB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录