Skip to content

Commit 8a88be7

Browse files
committed
Cs fixes
1 parent f3866c2 commit 8a88be7

File tree

7 files changed

+11
-21
lines changed

7 files changed

+11
-21
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## ssh-keys
22

33
[![CI](https://github.com/Oefenweb/ansible-ssh-keys/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-ssh-keys/actions?query=workflow%3ACI)
4-
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-ssh--keys-blue.svg)](https://galaxy.ansible.com/Oefenweb/ssh-keys)
4+
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-ssh--keys-blue.svg)](https://galaxy.ansible.com/Oefenweb/ssh_keys)
55

66
Manage ssh public key authentication (public / private / authorized keys and known hosts) in Debian-like systems.
77

@@ -83,8 +83,6 @@ None
8383
fingerprint: 'AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=='
8484
```
8585
86-
The `fingerprint` and `enctype` can be obtained using `ssh-keyscan`: `ssh-keyscan github.com` or the handy `ssh-keyscan` wrapper included in this role.
87-
8886
#### License
8987
9088
MIT

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
galaxy_info:
44
namespace: oefenweb
5-
role_name: ssh-keys
5+
role_name: ssh_keys
66
author: Mischa ter Smitten
77
company: Oefenweb.nl B.V.
88
description: Manage ssh public key authentication (public / private / authorized keys and known hosts) in Debian-like systems

molecule/default/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
- name: Converge
33
hosts: all
44
become: true
5-
tasks: []
65
pre_tasks:
76
- name: include vars
87
include_vars: "{{ playbook_dir }}/../../tests/vars/main.yml"

tasks/generate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
path: "{{ item.path | dirname }}"
77
owner: "{{ item.owner }}"
88
group: "{{ item.group | default(item.owner) }}"
9+
mode: 0700
910
state: directory
1011
with_items: "{{ ssh_keys_generate_keys }}"
1112
tags:

tests/tasks/post.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
- name: test presence of private key
44
shell: >
5-
diff files/id_rsa ~dummy/.ssh/id_rsa
5+
diff {{ playbook_dir }}/../files/id_rsa ~dummy/.ssh/id_rsa
66
&& (echo 'Private key test: pass' && exit 0)
77
|| (echo 'Private key test: fail' && exit 1)
88
args:
@@ -13,7 +13,7 @@
1313

1414
- name: test presence of public key
1515
shell: >
16-
diff files/id_rsa.pub ~dummy/.ssh/id_rsa.pub
16+
diff {{ playbook_dir }}/../files/id_rsa.pub ~dummy/.ssh/id_rsa.pub
1717
&& (echo 'Public key test: pass' && exit 0)
1818
|| (echo 'Public key test: fail' && exit 1)
1919
args:

tests/test.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@
1010
include: "{{ playbook_dir }}/tasks/pre.yml"
1111
roles:
1212
- ../../
13-
vars:
14-
ssh_keys_private_keys:
15-
- owner: dummy
16-
src: id_rsa
17-
ssh_keys_public_keys:
18-
- owner: dummy
19-
src: id_rsa.pub
20-
ssh_keys_authorized_keys:
21-
- owner: dummy
22-
src: id_rsa.pub
23-
ssh_keys_known_hosts:
24-
- hostname: github.com
25-
enctype: ssh-rsa
26-
fingerprint: 'AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' # noqa 204
13+
post_tasks:
14+
- name: include tasks
15+
include: "{{ playbook_dir }}/tasks/post.yml"

tests/vagrant.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
include: "{{ playbook_dir }}/tasks/pre.yml"
1111
roles:
1212
- ../../
13+
post_tasks:
14+
- name: include tasks
15+
include: "{{ playbook_dir }}/tasks/post.yml"

0 commit comments

Comments
 (0)