Hi
On Mon, 9 Mar 2020 at 18:48, harry devine <
lift...@gmail.com> wrote:
> The main.yml under tasks is as follows:
>
> - name: Playbook to perform a repo sync from the sat server
> hosts: localhost
>
> tasks:
> # Sync all repositories
> - name: Get all repositories
> foreman_search_facts:
> username: "{{sat_user}}"
> password: "{{sat_passwd}}"
> server_url: "https://{{sat_server_fqdn}}"
> resource: repositories
> validate_certs: "{{validate_sat_cert}}"
> register: repositories
>
>
> Any ideas on what could be going on?
Yes, your main.yml should ONLY contain a list of tasks - you also have
hosts, and an actual tasks entry.
You can just strip the first lines and intend the rest, so your
main.yml look like this:
---
- name: Get all repositories
foreman_search_facts:
username: "{{sat_user}}"
password: "{{sat_passwd}}"
server_url: "https://{{sat_server_fqdn}}"
resource: repositories
validate_certs: "{{validate_sat_cert}}"
register: repositories
--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT