- hosts: localhost gather_facts: false tasks: - name: Install roles local_action: ansible.builtin.command ansible-galaxy install -r requirements.yaml -p roles