Просмотр исходного кода

Add useful names + fix defaults in ssh-keys

pull/1/head
Chris Smith 10 лет назад
Родитель
Сommit
8c084feb87
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      playbooks/includes/ssh-keys

+ 3
- 3
playbooks/includes/ssh-keys Просмотреть файл

1
 ---
1
 ---
2
 # Maintains a set of SSH keys
2
 # Maintains a set of SSH keys
3
 
3
 
4
-- name: add authorized keys
4
+- name: add {{ key_dir }}'s authorized keys for {{ user }}
5
   authorized_key: user={{ user }}
5
   authorized_key: user={{ user }}
6
                   key="{{ lookup('file', item) }}"
6
                   key="{{ lookup('file', item) }}"
7
   with_fileglob:
7
   with_fileglob:
8
-    - /etc/ansible/data/keys/{{ key_dir }}/{{ type | default(active) }}/*
8
+    - /etc/ansible/data/keys/{{ key_dir }}/{{ type | default('active') }}/*
9
 
9
 
10
-- name: revoke old authorized keys
10
+- name: revoke {{ key_dir }}'s old authorized keys for {{ user }}
11
   authorized_key: user={{ user }}
11
   authorized_key: user={{ user }}
12
                   key="{{ lookup('file', item) }}"
12
                   key="{{ lookup('file', item) }}"
13
                   state=absent
13
                   state=absent

Загрузка…
Отмена
Сохранить