Skip to content

Commit b99945c

Browse files
committed
Added automatic ssh key generation
1 parent 0ed32c4 commit b99945c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

provision/ansible/roles/user/tasks/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
- include_vars: /vagrant/vm.yml
22

3-
- name: Setup ssh key (from github)
3+
- name: Setup ssh key (from github, authorized keys)
44
include: github-ssh-key.yml
55
when: githubUser is defined
66
tags:
77
- bootstrap
88

9+
- name: Generate ssh key
10+
include: ssh-key.yml
11+
tags:
12+
- bootstrap
13+
914
- name: Setup ssh config autobuilding
1015
include: ssh-conf-autobuild.yml
1116
tags:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- name: Generate ssh key
2+
user: name=vagrant generate_ssh_key=yes ssh_key_bits=4096 ssh_key_file=.ssh/id_rsa

0 commit comments

Comments
 (0)