-
Notifications
You must be signed in to change notification settings - Fork 44
"Unsupported parameters for (fortios_config) module: #43 #49
Comments
Hi @erishiamu Here are the successfully steps on my side:
Please set vdom in vars to an existing VDOM in your FortiGate. The backup file is saved in the same directory as your yml file, and the filename is set by "filename" in config_parameters. Thanks |
Hello, I will try this. Thanks for clarifying. A note on VDOM: we are not leveraging this feature. set vdom-admin disable is in the config. Is this required to be enabled to use the module? |
@erishiamu I cannot reproduce the problem you mentioned, your configuration works fine on my side . Can you try a configuration similar to the following?
|
I will replicate this now and attempt. Question: I'm actually going to need to specify an https port to use for this, is that possible? I'll test with https: False, but we're using 443 for SSLVPN and I assume we cannot have both that and the web interface/api on the same port? |
Alright. Not sure what the difference there is but I received different behavior copy pasting in your examples. It does error out, but is timing out trying to access /logincheck. I am not able to do this through a web browser, but beyond the link on the repo to https://fndn.fortinet.net, I can't seem to find any documentation for the API or configuration. I attempted to create an api user on the FW, but this seems to reflect that I will need to use pki to authenticate whereas this module seems to allow username and password? I can reach out to fortigate support if needed (and I imagine I will since the FNDN seems to be where the documentation lives and it requires two sponsors for some reason), but some clarity would be appreciated if possible. |
I reached out to Fortinet TAC and was advised that we would need to create an API admin user and utilize a key. Can I clarify how this is meant to interact with this module which is using a username/password combination to authenticate against the API? |
Duplicate of:
"Unsupported parameters for (fortios_config) module: #43
using example playbook https://github.com/fortinet-solutions-cse/40ansible/blob/master/examples/fortigate_backup_config.yml, receive this error.
Ansible 2.9.1. I ran declare -x ANSIBLE_LIBRARY=/etc/ansible/library (all files from the 40ansible/library folder were copied into it).
I'm also not entirely clear where this backup config would be placed if this worked, does it store it locally on the fortigate? our goal is to copy it to the ansible host (and then store in a bitbucket repo)
The text was updated successfully, but these errors were encountered: