|
@@ -1,4 +1,15 @@
|
|
---
|
|
---
|
|
|
|
+- name: Gather OS specific variables
|
|
|
|
+ include_vars: "{{ item }}"
|
|
|
|
+ with_first_found:
|
|
|
|
+ - "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}.yml"
|
|
|
|
+ - "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version }}.yml"
|
|
|
|
+ - "{{ ansible_distribution|lower }}.yml"
|
|
|
|
+ - "{{ ansible_lsb.id|default('NotAvailable')|lower }}.yml"
|
|
|
|
+ - "{{ (ansible_os_family|lower).split(' ')[0] }}.yml"
|
|
|
|
+ - "default.yml"
|
|
|
|
+
|
|
|
|
+
|
|
- name: "Set «PermitRootLogin» to «without-password»"
|
|
- name: "Set «PermitRootLogin» to «without-password»"
|
|
lineinfile:
|
|
lineinfile:
|
|
dest: /etc/ssh/sshd_config
|
|
dest: /etc/ssh/sshd_config
|