Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ssh-initramfs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible
roles
ssh-initramfs
Commits
d7f73e0e
Verified
Commit
d7f73e0e
authored
1 week ago
by
nd
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.cccv.de:infra/ansible/roles/ssh-initramfs
parents
d3d917f0
6fb1bfd9
Branches
master
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+2
-0
2 additions, 0 deletions
defaults/main.yml
tasks/main.yml
+12
-0
12 additions, 0 deletions
tasks/main.yml
vars/main.yml
+2
-2
2 additions, 2 deletions
vars/main.yml
with
16 additions
and
2 deletions
defaults/main.yml
0 → 100644
+
2
−
0
View file @
d7f73e0e
ssh_initramfs
:
copy_from_root
:
false
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
12
−
0
View file @
d7f73e0e
...
...
@@ -12,6 +12,7 @@
group
:
root
-
name
:
write authorized_keys file for dropbear-initramfs
when
:
not ssh_initramfs.copy_from_root
notify
:
update initramfs
template
:
src
:
authorized_keys.j2
...
...
@@ -19,3 +20,14 @@
mode
:
0644
owner
:
root
group
:
root
-
name
:
copy authorized_keys file from root user to dropbear-initramfs
when
:
ssh_initramfs.copy_from_root
notify
:
update initramfs
copy
:
src
:
/root/.ssh/authorized_keys
dest
:
"
{{
dropbear_initramfs_path
}}/authorized_keys"
remote_src
:
true
mode
:
0644
owner
:
root
group
:
root
This diff is collapsed.
Click to expand it.
vars/main.yml
+
2
−
2
View file @
d7f73e0e
dropbear_initramfs_path
:
"
{%
if
ansible_distribution_release
==
'bullseye'
%}/etc/dropbear-initramfs/{%
else
%}/etc/dropbear/initramfs/{%
endif
%}"
dropbear_initramfs_config_path
:
"
{{
dropbear_initramfs_path
}}{%
if
ansible_distribution_release
==
'bullseye'
%}config{%
else
%}dropbear.conf{%
endif
%}"
dropbear_initramfs_path
:
"
{%
if
(
ansible_distribution_release
|lower)
in
['buster',
'bullseye'
]
%}/etc/dropbear-initramfs/{%
else
%}/etc/dropbear/initramfs/{%
endif
%}"
dropbear_initramfs_config_path
:
"
{{
dropbear_initramfs_path
}}{%
if
(
ansible_distribution_release
|lower)
in
['buster',
'bullseye'
]
%}config{%
else
%}dropbear.conf{%
endif
%}"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment