Ansible-Playbook: - hosts: when executing via Satellite?

Posted on

Hi everyone,

I'm currently facing an issue with Ansible on Satellite that i hope the community can help me with.
So i try to run this small playbook that is supposed to just preconfigure a linux host for SAP HANA. My playbook looks like this:

  • roles:
    • sap-preconfigure
    • saphana-preconfigure

Now. Let's say i have a host group called XYZ which contains 2 hosts A and B. This host group gets assigned my previously mentioned playbook. Upon executing it on A and B, of course Ansible fails because i didnt specify - hosts.

What's the correct way to let Ansible know that it should use the 2 hosts in XYZ?

Thanks a lot in advance!

Kind Regards,
Daniel

Responses