तो लग रहा है इस सुविधा की तरह पदावनत किया गया है, मैं सच में समझ में नहीं आता क्यों, Ansible सीटीओ के का कहना है कि हम बजाय with_nested का उपयोग करना चाहिए, लेकिन ईमानदारी से मैं पता नहीं कैसे यह करने के लिए है में शामिल हैं,Ansible 1.6 with_items पदावनत
यहाँ मेरी playboook:
- hosts: all
user: root
vars:
- sites:
- site: site1.com
repo: ssh://[email protected]/orgname/reponame
nginx_ssl: true;
copy_init:
- path1/file1.txt
- path2/file2.php
- path2/file3.php
- site: site2.net
repo: ssh://[email protected]/orgname/reposite2
- site: site4.com
repo: ssh://[email protected]/orgname/reposite3
copy_init:
- path2/file2.php
tasks:
- name: Bootstrap Sites
include: bootstrap_site.yml site={{item}}
और जब Ansible 1.6.6 में इस पर अमल करने की कोशिश कर त्रुटि संदेश:
ERROR: [DEPRECATED]: include + with_items is a removed deprecated feature. Please update your playbooks.
कैसे मैं कुछ करने के लिए इस प्लेबुक में बदल सकते हैं कि इस उत्तरदायी संस्करण के साथ काम करता है?
मुझे कुछ याद आ रहा है। 'With_items' कहां है। 'Item' कहां से आ रहा है? – Batandwa