Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with creating addr objects in FortiManager #31

Open
JieX19 opened this issue Sep 8, 2021 · 3 comments
Open

Issue with creating addr objects in FortiManager #31

JieX19 opened this issue Sep 8, 2021 · 3 comments

Comments

@JieX19
Copy link

JieX19 commented Sep 8, 2021

Hi,

fortinet-ansible-dev/ansible-galaxy-fortios-collection#131

we tried to use the new Ansible (ansible-2.9.23-1.el7.noarch centos7) modules for creating address objects in Fortimanager v6.2.8-build1435 and wrote the following playbook:


  • name: Address and Address Group Creation
    hosts: FORTINET_FORTIMANAGER
    connection: httpapi
    collections:

    • fortinet.fortimanager
      gather_facts: no
      vars:
      ansible_network_os: fortinet.fortimanager.fortimanager
      ansible_httpapi_use_ssl: True
      ansible_httpapi_validate_certs: False
      ansible_httpapi_port: 443
      vars_prompt:
    • name: "ansible_user"
      prompt: "Username"
      private: no
      default: "{{ lookup('env', 'USER') }}"
    • name: "ansible_password"
      prompt: "Password"

    tasks:

    • name: Create an ipv6 address
      fmgr_firewall_address6:
      workspace_locking_adom: "XTC_6_2"
      workspace_locking_timeout: 300
      adom: "XTC_6_2"
      state: "present"
      enable_log: yes
      bypass_validation: False
      firewall_address6:
      comment: "TESTv6"
      ip6: "1000:2000:3000:4000::/64"
      name: "Testv6"
      type: "ipprefix"
      visibility: enable
      Unfortunatly this playbook just locks and unlocks the ADOM XTC_6_2 and doesn't create an address.
      I hope that this the right place for support - your hardware support team told us to ask you here.

Best regards,
Maxime

@jpforcioli
Copy link

Hi,

Reproduced.

We can observe the lock, the unlock, however the commit is missing.

@mpsikorski
Copy link

Hi,
thanks for the answer. Does this mean that there is an issue with the modules that you need to work on or do we have to use another module to "commit" the changes?

@mpsikorski
Copy link

Hi, do you already have an answer to my last question? Are you working on a fix or do we need to change our playbooks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants