Git initial commit
This commit is contained in:
commit
6bcf35137f
24 files changed
+790
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- name: install OpenSSH server
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: "{% if cloud_update | bool %}latest{% else %}present{% endif %}"
|
||||
install_recommends: yes
|
||||
pkg: openssh-server
|
||||
|
||||
- name: setup sshd_config
|
||||
lineinfile:
|
||||
path: "{{ sshd_conf }}"
|
||||
regexp: '^#?{{ configline.split(" ")[0] }}{% if configline.split(" ") | length > 1 %} {% endif %}'
|
||||
line: "{{ configline }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
loop: "{{ ssh_configs }}"
|
||||
loop_control:
|
||||
loop_var: configline
|
||||
label: "{{ configline }}"
|
||||
notify: restart sshd service
|
||||
Reference in new issue
Block a user