network_hosts - Host Resource +++++++++++++++++++++++++++++ .. versionadded:: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- Host Resource. Use API "/resource-api/v2/network/hosts". Requirements ------------ The below requirements are needed on the host that executes this module. - ansible>=2.17.0 Parameters ---------- .. raw:: html Examples ------------- .. code-block:: yaml - name: Network Host hosts: fortisase gather_facts: false vars: host: "network_host_example" tasks: - name: Create/Update Network Host fortinet.fortisase.network_hosts: state: present params: primary_key: "{{ host }}" type: "ipmask" location: "internal" subnet: "192.168.4.0/24" - name: Delete Network Host fortinet.fortisase.network_hosts: state: absent params: primary_key: "{{ host }}" Return Values ------------- .. raw:: html Authors ------- - Xinwei Du (@dux-fortinet)