You've already forked ansible-role-root
Initial COmmit
This commit is contained in:
10
templates/root/.ssh/authorized_keys.j2
Normal file
10
templates/root/.ssh/authorized_keys.j2
Normal file
@ -0,0 +1,10 @@
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
{% for authorized_key in root.ssh.authorized_keys %}
|
||||
{% if authorized_key.command is defined and authorized_key.command | length > 0 %}
|
||||
command="{{ authorized_key.command }}" {{ lookup('file', 'ssh/authorized_keys/' + authorized_key.filename ) }}
|
||||
{% else %}
|
||||
{{ lookup('file', 'ssh/authorized_keys/' + authorized_key.filename ) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
15
templates/root/.ssh/config.j2
Normal file
15
templates/root/.ssh/config.j2
Normal file
@ -0,0 +1,15 @@
|
||||
#jinja2: lstrip_blocks: True
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
{% for config in root.ssh.config %}
|
||||
{% for property, value in config.items() %}
|
||||
{% if property == "Host" %}
|
||||
{{ property }} {{ value }}
|
||||
{% else %}
|
||||
{{ property }} {{ value }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% endfor %}
|
Reference in New Issue
Block a user