fortigate コレクションを使用する必要があります。私はすべてをプレイブックで実行します
---
- hosts: fortigates
collections:
- fortinet.fortios
connection: httpapi
vars:
vdom: "root"
ansible_httpapi_use_ssl: yes
ansible_httpapi_validate_certs: no
ansible_httpapi_port: 443
tasks:
- name: Configure global attributes.
fortios_system_global:
vdom: "{{ vdom }}"
system_global:
admintimeout: "23"
hostname: "FortiGate02"
すべて正常に動作します。
しかし、ロールを作成してタスクファイルにタスクを追加すると、プレイは別のバージョンのコレクションを使用します。
何か案が?
コレクションを追加しました
collections:
- fortinet.fortios
meta.yml で