Closed bertiewils closed 1 year ago
These changes:
ansible_env.USER
user_data.home
ansible_user_dir
This is the most portable/readable way I could do it.
The alternative would be to have with_items: "{{ aws_ecr_cred_helper_users }}" on every task in tasks/configure-docker-json.yml.
with_items: "{{ aws_ecr_cred_helper_users }}"
tasks/configure-docker-json.yml
Let me know your thoughts.
Tested on Ubuntu 22.04.
These changes:
ansible_env.USER
is set in the defaults (which is the Ansible user), souser_data.home
==ansible_user_dir
This is the most portable/readable way I could do it.
The alternative would be to have
with_items: "{{ aws_ecr_cred_helper_users }}"
on every task intasks/configure-docker-json.yml
.Let me know your thoughts.
Tested on Ubuntu 22.04.