--- - name: Configure App Server hosts: app remote_user: root become: yes # sudo roles: - app vars: registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}" registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}"