From c1d7678cc25c277c7ce83208d3abe634dc775dfc Mon Sep 17 00:00:00 2001 From: Davide Guerri Date: Thu, 4 Jun 2015 19:30:34 +0100 Subject: [PATCH] Avoind using lookup() in documentation lookup() is currently broken (current Ansible devel branch), so better to avoid it in our examples. --- lib/ansible/modules/cloud/openstack/os_keypair.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/openstack/os_keypair.py b/lib/ansible/modules/cloud/openstack/os_keypair.py index c472555272..c6794b4782 100644 --- a/lib/ansible/modules/cloud/openstack/os_keypair.py +++ b/lib/ansible/modules/cloud/openstack/os_keypair.py @@ -63,7 +63,7 @@ EXAMPLES = ''' cloud: mordred state: present name: ansible_key - public_key: "{{ lookup('file','~/.ssh/id_rsa.pub') }}" + public_key_file: ~/.ssh/id_rsa.pub # Creates a new key pair and the private key returned after the run. - os_keypair: