I am trying to load the environment variables from multiple files like variable1.yml , variable2.yml,variable3.yml…variable24.yml, this files contains two variables say (ptr_image and ver_number: Vsomeversion)…this files are dynamic and the values keep changing…the variable names ( i.e ptr_image and version_number ) remains the same across the files only values keep changing… Need to add this values one by one as an environment variable to run a command like
- name: running the docker stack
shell: docket stack -c some.yml …
We tried using the include_vars module but it only work for one environment variable but doesn’t work for the variable with_items variabe…
not sure if we are doing it correctly…Could you please here…thank you.