1
我使用的是2.1.0。我期待在http://ryaneschinger.com/blog/securing-a-server-with-ansible/此頁面並運行以下部分的劇本:使用Ansible2,在`with_items`循環中使用`lookup('file',item)`的正確方法是什麼?
- name: Add authorized keys for deploy user
authorized_key: user={{ username }}
key="{{ lookup('file', item) }}"
with_items: public_keys
當我跑,我得到[DEPRECATION WARNING]: Using bare variables is deprecated. Update your playbooks so that the environment value uses the full variable syntax ('{{public_keys}}').
什麼是不會被棄用的方式做?