Hello Everybody,
sorry for bothering you, I’m just a newbie… I’m tryng to run one playbook on my ansible controller…
I’ve installed the collection; I’ve installed the needed python module anyway even the playbook seems to be correct (–syntax-check no error)this playbook stops with an error message "error in repo…
---
-
name: Configure Fortigate ACL
hosts: fortigate01
gather_facts: no
collections:
- fortinet.fortios
connection: httpapi
vars:
vdom: “root”
ansible_httpapi_use_ssl: yes
ansible_httpapi_validate_certs: no
ansible_httpapi_port: 443
#access_token: “”
tasks:
- name: Create ACL
fortios_firewall_policy:
#access_token: “{{ access_token }}”
state: “present”
firewall_policy:
policyid: “1”
name: “test_ansible”
srcintf:
- name: “port1”
dstintf:
- name: “port2”
srcaddr:
- name: “all”
dstaddr:
- name: “all”
action: “accept”
schedule: “always”
service:
- name: “SSH”
- name: “HTTP”
- name: “HTTPS”
- name: “WINRM”
nat: “disable”
comments: “Allow traffic to 172.20.108.22 for SSH, HTTP, HTTPS, and WinRM”
#policy_type: “policy”
permit_any_host: “enable”
Whats’ wrong ? could you help me ?