【发布时间】:2020-05-21 10:49:00
【问题描述】:
我在添加 Fortigate 防火墙作为 主机到我的 Ansible 控制器。谁能帮忙 这个问题?我已经复制了防火墙上的 id_rsa.pub 密钥,但是 无法 ping 该防火墙,出现权限等错误 否认。 我需要通过 Ansible 在 Fortigate 上配置 SNMP,一旦我 解决这个问题。希望你们能在这个问题上帮助我。
【问题讨论】:
标签: ansible snmp snmp-trap fortigate
我在添加 Fortigate 防火墙作为 主机到我的 Ansible 控制器。谁能帮忙 这个问题?我已经复制了防火墙上的 id_rsa.pub 密钥,但是 无法 ping 该防火墙,出现权限等错误 否认。 我需要通过 Ansible 在 Fortigate 上配置 SNMP,一旦我 解决这个问题。希望你们能在这个问题上帮助我。
【问题讨论】:
标签: ansible snmp snmp-trap fortigate
或许能帮到你
- name: Backup current config
fortios_config:
host: 192.168.0.254
username: admin
password: password
backup: yes
- name: Backup only address objects
fortios_config:
host: 192.168.0.254
username: admin
password: password
backup: yes
backup_path: /tmp/forti_backup/
filter: "firewall address"
- name: Update configuration from file
fortios_config:
host: 192.168.0.254
username: admin
password: password
src: new_configuration.conf.j2
来自:https://docs.ansible.com/ansible/latest/modules/fortios_config_module.html
【讨论】: