Fortimanager vs Ansible
Hello guys,
I was trying trying to automate some tasks with Ansible module for FortiManager (https://github.com/networktocode/fortimanager-ansible), but stucked and need your help.
My playbook successfully gets information from FMG and locks ADOMs, but I can't perform any changes because I get this kind of error:
failed: [192.168.1.1] (item={u'bpm': u'12345', u'name': u'Customer1', u'addr': u'1.1.1.1'}) => {"changed": false, "fortimanager_response": {"result": [{"status": {"code": -10147, "message": "no write permission"}, "url": "/pm/config/adom/IBB/obj/firewall/address"}]}, "item": {"addr": "1.1.1.1", "bpm": "12345", "name": "Customer1"}, "msg": "Unable to Apply Config"}
My user has all necessary permissions:
FortiMgmt.dn.ukr # show system admin user ansible
config system admin user
edit "ansible"
set password ENC bla-bla-bla
set profileid "Super_User"
set adom "all_adoms"
set policy-package "all_policy_packages"
set description "Ansible"
config meta-data
edit "Contact Email"
set fieldvalue "123@abcde.com"
next
edit "Contact Phone"
set fieldvalue "+123"
next
end
set rpc-permit read-write
I'm on 5.4.4. Thanks for your help.