我开始使用Ansible,想看看我是否可以使用Ansible:
任何人都可以帮助我吗?到目前为止我所能找到的只是等待一个特定的端口,但我需要实际检查接口是否可用
谢谢!
发布于 2019-05-24 10:26:38
tasks:
- name: "Check for network interfaces"
debug:
msg: "Execute task when network interface exists."
when: "'enp0s25' in hostvars[inventory_hostname]['ansible_interfaces']"
https://stackoverflow.com/questions/-100003149
复制相似问题