# {"Error in repo"}

**URL:** <https://forum.ansible.com/t/error-in-repo/2489>\
**Category:** Get Help\
**Created:** [November 21, 2023, 1:27pm UTC](https://forum.ansible.com/t/error-in-repo/2489 "2023-11-21T13:27:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Filippo](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@Filippo](https://forum.ansible.com/u/Filippo)\
**Post date:** [November 21, 2023, 1:27pm UTC](https://forum.ansible.com/t/error-in-repo/2489/1 "2023-11-21T13:27:17Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![atul\_mohan](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@atul\_mohan](https://forum.ansible.com/u/atul_mohan)\
**Post date:** [December 29, 2024, 6:17am UTC](https://forum.ansible.com/t/error-in-repo/2489/2 "2024-12-29T06:17:44Z")

</div>

```auto
---
- name: Configure Fortigate ACL via HTTPAPI
  hosts: fortigate01
  gather_facts: no
  
  collections:
    - fortinet.fortios

  # If you prefer setting these in the playbook vars:
  vars:
    vdom: "root"
    ansible_network_os: "fortinet.fortios.fortios"
    ansible_connection: "httpapi"
    ansible_httpapi_use_ssl: true
    ansible_httpapi_validate_certs: false
    ansible_httpapi_port: 443
    # ansible_user: "admin"
    # ansible_password: "MyFortiPass"

  tasks:
    - name: Create ACL policy
      fortios_firewall_policy:
        vdom: "{{ vdom }}"
        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 SSH, HTTP, HTTPS, WINRM"

```
