--- - hosts: opnsense.homelan connection: local # execute modules on controller gather_facts: false tasks: - name: Example oxlorg.opnsense.alias: firewall: "{{ ansible_host }}" # or use a per-host variable to store the FQDN.. api_key: "{{ firewall.key }}" api_secret: "{{ firewall.secret }}"