Home > OS >  Ansible with_items use consult in the playbook
Ansible with_items use consult in the playbook

Time:11-21

 
- block:
- name: prepare file copy {{item}}
Template: src=https://bbs.csdn.net/topics/{{item}}. Yaml. J2 dest=/opt/{{item}}. The yaml
With_items:
- service - a
- service - b
- service - c


The cycle of the above yaml file, with_items variable how to obtain directly from the file?
  • Related