AB
Size: a a a
AB
VZ
AB
VZ
VZ
- name: "Set {{ add_nexus_config_dir_pip }}/{{ add_nexus_repo_files_pip }}"
template:
src: "{{ add_nexus_template_dir_pip_repo }}/{{ item }}.j2"
dest: "{{ add_nexus_config_dir_pip }}/{{ item }}"
owner: "{{ add_nexus_config_owner }}"
group: "{{ add_nexus_config_group }}"
mode: "{{ add_nexus_config_mode }}"
with_items: "{{ add_nexus_repo_files_pip }}"
VZ
VZ
TG
VZ
TG
TG
read_only = "{{ item.ro }}"
на выходе получаем read_only = "True"
, а нужно "true", приложенька True с большой буквы не понимает(read_only = "{{ item.ro | lower }}"
AK
read_only = "{{ item.ro | lower }}"
L
with_fileglob:Я бы хотел сделать поверх ещё один loop, чтобы можно было указывать
- templates/dir1/*.j2
with_fileglob:Возможно ли это? И если да, то как?
- templates/{{item.dir}}/*.j2
with_fileglob: '{{ dir_list | map("regex_replace", "^(.*)$", "\1/*" ) | list }}'
IS
PG
TG
АК
TG