无法将强化防火墙添加为 Ansible 主机



我在添加Fortigate防火墙时遇到问题 主机到我的 Ansible 控制器。谁能帮忙 这个问题?我已经在防火墙上复制了 id_rsa.pub 密钥,但是 无法ping该防火墙,收到诸如权限之类的错误 否认。 我需要通过 Ansible 在 Fortigate 上配置 SNMP,一旦我 修复此问题。希望你们能在这个问题上帮助我。

也许可以帮助你

- 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

最新更新