我正在尝试确定是否可以使用从Ansible to实例中收集的Ansible事实来填充servicenow CMDB。我可以找到许多关于从CMDB中提取清单的文档,或者关于使用Ansible创建事件的文档,但没有关于基于收集的事实更新CI对象的文档。这个是可能的吗?
发布于 2019-06-01 03:55:10
查看此存储库,https://github.com/michaelford85/ansible-servicenow-exercises
尤其是Ansible Playbook-> snow-table-fields.yml
- name: Retrieve fields for a table {{ snow_table }}
snow_record:
state: present
table: "{{ snow_table }}"
data:
name: delete_this_record
username: "{{ SN_USERNAME }}"
password: "{{ SN_PASSWORD }}"
instance: "{{ SN_INSTANCE }}"
register: table_output其中{{snow_table}}可以是类似cmdb_ci_linux_server的内容
https://stackoverflow.com/questions/55228407
复制相似问题