diff options
Diffstat (limited to 'system/authorized_key.py')
-rw-r--r-- | system/authorized_key.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/system/authorized_key.py b/system/authorized_key.py index 0b15d2fd..6cfd856e 100644 --- a/system/authorized_key.py +++ b/system/authorized_key.py @@ -99,18 +99,20 @@ EXAMPLES = ''' # Using github url as key source - authorized_key: user: charlie - key: https://github.com/charlie.keys + key: 'https://github.com/charlie.keys' # Using alternate directory locations: - authorized_key: user: charlie key: "{{ lookup('file', '/home/charlie/.ssh/id_rsa.pub') }}" - path: '/etc/ssh/authorized_keys/charlie' + path: /etc/ssh/authorized_keys/charlie manage_dir: no # Using with_file - name: Set up authorized_keys for the deploy user - authorized_key: user=deploy key="{{ item }}" + authorized_key: + user: deploy + key: "{{ item }}" with_file: - public_keys/doe-jane - public_keys/doe-john @@ -124,13 +126,13 @@ EXAMPLES = ''' # Using validate_certs: - authorized_key: user: charlie - key: https://github.com/user.keys + key: 'https://github.com/user.keys' validate_certs: no # Set up authorized_keys exclusively with one key - authorized_key: user: root - key: '{{ item }}' + key: "{{ item }}" state: present exclusive: yes with_file: |