1
私はansible 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}}').
を取得しますか?