Files
dsk-iac/ansible/infra_setting/roles/connect-settings/templates/allow_users.j2
ByeonJungHun c9a8345f70 task 수정
2024-01-09 12:08:37 +09:00

23 lines
590 B
Django/Jinja
Executable File

AllowUsers dev2@10.10.43.*
AllowUsers dev2-iac@10.10.43.*
AllowUsers *@10.20.142.*
{% if ansible_distribution == "Ubuntu" %}
AllowUsers ubuntu@10.10.43.*
{% endif %}
{% if ansible_distribution == "CentOS" %}
AllowUsers centos@10.10.43.*
{% endif %}
{% if ansible_distribution == "RedHat" %}
AllowUsers redhat@10.10.43.*
{% endif %}
{% if admin_users is defined %}
{% for user in admin_users %}
AllowUsers {{ user.name }}@{{ user.ip }}
{% endfor %}
{% endif %}
{% if allow_users is defined %}
{% for user in allow_users %}
AllowUsers {{ user.name }}@{{ user.ip }}
{% endfor %}
{% endif %}