---
- hosts: 127.0.0.1
  vars:
   - content: "{{ lookup('file', '../inventories/aws/group_vars/all.yml') }}"
  tasks:
   - debug:
       msg: 'content is : {{ content }}'