2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
- name: various pub ssh keys for users and apps
|
|
|
|
authorized_key: user=root key="{{ item }}" state=present
|
2016-03-07 15:47:16 +01:00
|
|
|
with_items: '{{ root_ssh_keys | default([]) }}'
|
2015-07-13 14:17:42 +02:00
|
|
|
when: manage_root_ssh_keys
|
|
|
|
tags: root_pubkeys
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: Remove obsolete keys from the authorized ones
|
|
|
|
authorized_key: user=root key="{{ item }}" state=absent
|
2016-03-07 15:47:16 +01:00
|
|
|
with_items: '{{ obsolete_root_ssh_keys | default([]) }}'
|
2015-07-13 14:17:42 +02:00
|
|
|
when: obsolete_root_ssh_keys is defined
|
|
|
|
tags: root_pubkeys
|