mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-25 12:30:19 +01:00
commit
537b9b2bc2
1 changed files with 0 additions and 12 deletions
|
@ -7,22 +7,16 @@
|
||||||
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
|
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
|
||||||
- "{{ ansible_os_family }}.yml"
|
- "{{ ansible_os_family }}.yml"
|
||||||
- default.yml
|
- default.yml
|
||||||
tags:
|
|
||||||
- sshd
|
|
||||||
|
|
||||||
- name: OS is supported
|
- name: OS is supported
|
||||||
assert:
|
assert:
|
||||||
that: sshd_os_supported == True
|
that: sshd_os_supported == True
|
||||||
tags:
|
|
||||||
- sshd
|
|
||||||
|
|
||||||
- name: Install ssh packages
|
- name: Install ssh packages
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
with_items: "{{ sshd_packages }}"
|
with_items: "{{ sshd_packages }}"
|
||||||
tags:
|
|
||||||
- sshd
|
|
||||||
|
|
||||||
- name: Configuration
|
- name: Configuration
|
||||||
template:
|
template:
|
||||||
|
@ -33,8 +27,6 @@
|
||||||
mode: "{{ sshd_config_mode }}"
|
mode: "{{ sshd_config_mode }}"
|
||||||
validate: "{{ sshd_binary }} -t -f %s"
|
validate: "{{ sshd_binary }} -t -f %s"
|
||||||
notify: reload_sshd
|
notify: reload_sshd
|
||||||
tags:
|
|
||||||
- sshd
|
|
||||||
|
|
||||||
- name: Service enabled and running
|
- name: Service enabled and running
|
||||||
service:
|
service:
|
||||||
|
@ -42,11 +34,7 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
when: sshd_manage_service and ansible_virtualization_type != 'docker'
|
when: sshd_manage_service and ansible_virtualization_type != 'docker'
|
||||||
tags:
|
|
||||||
- sshd
|
|
||||||
|
|
||||||
- name: Register that this role has run
|
- name: Register that this role has run
|
||||||
set_fact: sshd_has_run=true
|
set_fact: sshd_has_run=true
|
||||||
when: sshd_has_run is not defined
|
when: sshd_has_run is not defined
|
||||||
tags:
|
|
||||||
- sshd
|
|
||||||
|
|
Loading…
Reference in a new issue