程序问答   发布时间:2022-06-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了将 JSON 文本分配给 Ansible 中的字符串字段大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决将 JSON 文本分配给 Ansible 中的字符串字段?

开发过程中遇到将 JSON 文本分配给 Ansible 中的字符串字段的问题如何解决?下面主要结合日常开发的经验,给出你关于将 JSON 文本分配给 Ansible 中的字符串字段的解决方法建议,希望对你解决将 JSON 文本分配给 Ansible 中的字符串字段有所启发或帮助;

我正在使用 Ansible 和 Kubernetes 来应用 yaml 文件/配置映射。

我想将特定字段的值设置为字符串。该字符串将是 JsON 文本,与 yaml/config 映射的结构无关。

我可以这样做:

@H_673_8@- name: Change a fIEld in the ConfigMap (this will be a PATCH request) k8s: deFinition: APIVersion: v1 kind: ConfigMap Metadata: name: "test" namespace: test data: Hello: '[{"name":"John","age":31,"city":"New York"}]'

适用于单引号。

使用双引号,它不起作用。 “加载 YAML 时出现语法错误。”。我猜它正在尝试用双引号解析 JsON 的内容。

问题来了。我想使用一个包含 JsON 字符串的变量,并做同样的事情。

假设我这样做:

@H_673_8@- name: Set a name variable for this example set_fact: var: '[{"name":"John","city":"New York"}]' - name: Change a fIEld in the ConfigMap (this will be a PATCH request) k8s: deFinition: APIVersion: v1 kind: ConfigMap Metadata: name: "test" namespace: test data: Hello: '{{ var }}'

无论我使用单引号还是双引号,这都会爆炸。

@H_673_8@fatal: [localhost]: Failed! => {"changed": false,"error": 422,"msg": "Failed to patch object: b'{\"kind\":\"Status\",\"APIVersion\":\"v1\",\"Metadata\":{},\"status\":\"Failure\",\"message\":\" \\\\\"\\\\\" is invalID: patch: InvalID value: \\\\\"{\\\\\\\\\\\\\"APIVersion\\\\\\\\\\\\\":\\\\\\\\\\\\\"v1\\\\\\\\\\\\\",\\\\\\\\\\\\\"data\\\\\\\\\\\\\":{\\\\\\\\\\\\\"extensions\\\\\\\\\\\\\":\\\\\\\\\\\\\"[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"extension_point_ID\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"service_instance_details\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"extension_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"custom_instance_details\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"match_instance_ID\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"532\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"details\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"custom_sections\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"section_key\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"nodessection\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Configuration\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"rows\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"label\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"number of nodes\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\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\\\\\\\\\\\\\\\\\"copypassword\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"copy\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}]},{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"label\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Replica set connection\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"updatedValue\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"actions\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"ID\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"copyreplica\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"href_target\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}}]}]}]}}]\\\\\\\\\\\\\",\\\\\\\\\\\\\"Hello\\\\\\\\\\\\\":[{\\\\\\\\\\\\\"age\\\\\\\\\\\\\":31,\\\\\\\\\\\\\"city\\\\\\\\\\\\\":\\\\\\\\\\\\\"New York\\\\\\\\\\\\\",\\\\\\\\\\\\\"name\\\\\\\\\\\\\":\\\\\\\\\\\\\"John\\\\\\\\\\\\\"}]},\\\\\\\\\\\\\"kind\\\\\\\\\\\\\":\\\\\\\\\\\\\"ConfigMap\\\\\\\\\\\\\",\\\\\\\\\\\\\"Metadata\\\\\\\\\\\\\":{\\\\\\\\\\\\\"Annotations\\\\\\\\\\\\\":{\\\\\\\\\\\\\"kubectl.kubernetes.io/last-applIEd-configuration\\\\\\\\\\\\\":\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"APIVersion\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"v1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"data\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"extensions\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"extension_point_ID\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"service_instance_details\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"extension_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"custom_instance_details\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\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\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"namespace\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"prasa\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}}\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\"},\\\\\\\\\\\\\"creationtimestamp\\\\\\\\\\\\\":\\\\\\\\\\\\\"2021-04-28T02:46:43Z\\\\\\\\\\\\\",\\\\\\\\\\\\\"labels\\\\\\\\\\\\\":{\\\\\\\\\\\\\"icPDAta_addon\\\\\\\\\\\\\":\\\\\\\\\\\\\"true\\\\\\\\\\\\\"},\\\\\\\\\\\\\"managedFIElds\\\\\\\\\\\\\":[{\\\\\\\\\\\\\"manager\\\\\\\\\\\\\":\\\\\\\\\\\\\"oc\\\\\\\\\\\\\",\\\\\\\\\\\\\"operation\\\\\\\\\\\\\":\\\\\\\\\\\\\"update\\\\\\\\\\\\\",\\\\\\\\\\\\\"APIVersion\\\\\\\\\\\\\":\\\\\\\\\\\\\"v1\\\\\\\\\\\\\",\\\\\\\\\\\\\"time\\\\\\\\\\\\\":\\\\\\\\\\\\\"2021-04-28T15:44:10Z\\\\\\\\\\\\\",\\\\\\\\\\\\\"fIEldsType\\\\\\\\\\\\\":\\\\\\\\\\\\\"FIEldsV1\\\\\\\\\\\\\",\\\\\\\\\\\\\"fIEldsV1\\\\\\\\\\\\\":{\\\\\\\\\\\\\"f:Metadata\\\\\\\\\\\\\":{\\\\\\\\\\\\\"f:Annotations\\\\\\\\\\\\\":{\\\\\\\\\\\\\".\\\\\\\\\\\\\":{},\\\\\\\\\\\\\"f:kubectl.kubernetes.io/last-applIEd-configuration\\\\\\\\\\\\\":{}},\\\\\\\\\\\\\"f:labels\\\\\\\\\\\\\":{\\\\\\\\\\\\\".\\\\\\\\\\\\\":{},\\\\\\\\\\\\\"f:icPDAta_addon\\\\\\\\\\\\\":{}}}}},{\\\\\\\\\\\\\"manager\\\\\\\\\\\\\":\\\\\\\\\\\\\"kubectl\\\\\\\\\\\\\",\\\\\\\\\\\\\"time\\\\\\\\\\\\\":\\\\\\\\\\\\\"2021-04-28T16:14:58Z\\\\\\\\\\\\\",\\\\\\\\\\\\\"fIEldsV1\\\\\\\\\\\\\":{\\\\\\\\\\\\\"f:data\\\\\\\\\\\\\":{\\\\\\\\\\\\\".\\\\\\\\\\\\\":{},\\\\\\\\\\\\\"f:extensions\\\\\\\\\\\\\":{}}}},{\\\\\\\\\\\\\"manager\\\\\\\\\\\\\":\\\\\\\\\\\\\"OpenAPI-Generator\\\\\\\\\\\\\",\\\\\\\\\\\\\"time\\\\\\\\\\\\\":\\\\\\\\\\\\\"2021-04-28T16:25:35Z\\\\\\\\\\\\\",\\\\\\\\\\\\\"fIEldsV1\\\\\\\\\\\\\":{\\\\\\\\\\\\\"f:data\\\\\\\\\\\\\":{\\\\\\\\\\\\\"f:Hello\\\\\\\\\\\\\":{}}}}],\\\\\\\\\\\\\"name\\\\\\\\\\\\\":\\\\\\\\\\\\\"test-details\\\\\\\\\\\\\",\\\\\\\\\\\\\"namespace\\\\\\\\\\\\\":\\\\\\\\\\\\\"prasa\\\\\\\\\\\\\",\\\\\\\\\\\\\"resourceVersion\\\\\\\\\\\\\":\\\\\\\\\\\\\"434431\\\\\\\\\\\\\",\\\\\\\\\\\\\"uID\\\\\\\\\\\\\":\\\\\\\\\\\\\"c5ea7b6a-94b0-40b7-b171-dc9fcc23e0f2\\\\\\\\\\\\\"}}\\\\\": v1.ConfigMap.Data: ReadString: expects \\\\\" or n,but found [,error found in #10 byte of ...|,\\\\\"Hello\\\\\":[{\\\\\"age\\\\\":31,|...,bigger context ...|l\\\\\\\\\\\\\":\\\\\\\\\\\\\"\\\\\\\\\\\\\",\\\\\\\\\\\\\"href_target\\\\\\\\\\\\\":\\\\\\\\\\\\\"\\\\\\\\\\\\\"}}]}]}]}}]\\\\\",\\\\\"city\\\\\":\\\\\"New York\\\\\",\\\\\"name\\\\\":\\\\\"John\\\\\"}]},\\\\\"kind|...\",\"fIEld\":\"patch\"}]},\"code\":422}\\n'","reason": "Unprocessable Entity","status": 422}

任何想法如何做到这一点?

解决方法

我试过了你的代码对我有用。您需要使用单引号,因为单代码用作分隔符。插入字符串,您不能再次使用单引号,这意味着已到达字符串结尾。双引号也是一样。如果您将它们用作分隔符,则在字符串内部不能再次使用它(或者您需要使用 \"

对字符串内部的双引号进行转义

另一种选择:除了在 var 中使用字符串之外,您还@R_618_9838@一个字典并注入它。

@H_673_8@- name: Set a name variable for this example set_fact: var: - name: "John" age: 31 city: "New York" - name: "Change a field in the ConfigMap (this will be a PATCH request)" k8s: definition: apiVersion: v1 kind: ConfigMap metadata: name: "test" namespace: test data: Hello: "{{ var }}"

大佬总结

以上是大佬教程为你收集整理的将 JSON 文本分配给 Ansible 中的字符串字段全部内容,希望文章能够帮你解决将 JSON 文本分配给 Ansible 中的字符串字段所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。