Showcase the new-style lookup plugin access in the authorized_key docs rather than the old-style $FILE

pull/2729/merge
Michael DeHaan 11 years ago
parent 66afe13346
commit adac8f5312

@ -7,8 +7,8 @@ Ansible Documentation
:alt: ansiblefest 2013
:target: http://ansibleworks.com/fest
This page contains documentation about how to use `Ansible <http://ansible.cc>`_ and covers the latest version. For the current
released version, see `Ansible 1.1 Docs <http://ansible.cc/docs/released/1.1>`_. You may also be interested in taking a class:
NOTE: This page contains documentation about how to use `Ansible <http://ansible.cc>`_ and covers the latest DEVELOPMENT version (1.2). For the current
released version, see `Ansible 1.1 Docs <http://ansible.cc/docs/released/1.1>`_ instead. You might be one of them. We hope you find what you are looking for in the documentation, and would like to point out that you may also be interested in taking a class:
.. image:: http://www.ansibleworks.com.s3-website-us-east-1.amazonaws.com/img/banners/training.png
:alt: ansibleworks training

@ -65,10 +65,10 @@ author: Brad Olson
EXAMPLES = '''
# Example using key data from a local file on the management machine
authorized_key: user=charlie key='$FILE(/home/charlie/.ssh/id_rsa.pub)
authorized_key: user=charlie key="{{ lookup('file', '/home/charlie/.ssh/id_rsa.pub') }}"
# Using alternate directory locations:
authorized_key: user=charlie key='$FILE(/home/charlie/.ssh/id_rsa.pub)' sshdir='/etc/ssh/authorized_keys/charlie' manage_dir=no
authorized_key: user=charlie key="{{ lookup('file', '/home/charlie/.ssh/id_rsa.pub') }}" sshdir='/etc/ssh/authorized_keys/charlie' manage_dir=no
'''
# Makes sure the public key line is present or absent in the user's .ssh/authorized_keys.

Loading…
Cancel
Save