Skip to content
Snippets Groups Projects
Commit 7c800241 authored by Joshua Davis Aylor's avatar Joshua Davis Aylor :penguin:
Browse files

Add Ubuntu 22.04 and 24.04

parent 5c569a21
Branches
1 merge request!1Add Ubuntu 22.04 and 24.04
......@@ -53,6 +53,7 @@ sshd_permit_root_login: 'no'
sshd_ports:
- 22
sshd_config_file: sshd_config.j2
sshd_service_name: "{% if ansible_os_family == 'Debian' and ansible_distribution_major_version >= '24' %}ssh{% else %}sshd{% endif %}"
# ssh client variables
ssh_forward_agent: 'yes'
......
......@@ -20,5 +20,5 @@
become: true
become_user: root
service:
name: sshd
name: "{{ sshd_service_name }}"
state: restarted
......@@ -16,5 +16,9 @@ galaxy_info:
versions:
- 8
- 9
- name: Ubuntu
versions:
- 22.04
- 24.04
dependencies: []
......@@ -75,7 +75,7 @@
- name: sshd - regenerate ssh host keys after ssh install
service:
name: sshd
name: "{{ sshd_service_name }}"
state: restarted
enabled: true
when: ssh_install.changed
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment