Browse Source

Ensure that SSHD is installed, enabled and running

The repo server relies on SSHD for the repo synchronisation,
so in this patch we ensure that it is installed, enabled and
running.

Change-Id: I0618e76125fc1489903b3518b9bef3999c8c7347
Jesse Pretorius 7 months ago
parent
commit
73941167f1
4 changed files with 11 additions and 0 deletions
  1. 8
    0
      tasks/repo_post_install.yml
  2. 1
    0
      vars/debian.yml
  3. 1
    0
      vars/redhat.yml
  4. 1
    0
      vars/suse.yml

+ 8
- 0
tasks/repo_post_install.yml View File

@@ -28,6 +28,14 @@
28 28
     name: "{{ repo_service_user_name }}"
29 29
     generate_ssh_key: "yes"
30 30
 
31
+- name: Enable SSHD
32
+  systemd:
33
+    name: sshd
34
+    state: started
35
+    enabled: yes
36
+    masked: no
37
+    daemon_reload: yes
38
+
31 39
 - name: Drop NGINX configuration files
32 40
   template:
33 41
     src: "{{ item.src }}"

+ 1
- 0
vars/debian.yml View File

@@ -24,6 +24,7 @@ repo_server_distro_packages:
24 24
   - git
25 25
   - lsyncd
26 26
   - nginx-extras
27
+  - openssh-server
27 28
   - rsync
28 29
 
29 30
 repo_pkg_cache_server_distro_packages:

+ 1
- 0
vars/redhat.yml View File

@@ -26,6 +26,7 @@ repo_server_distro_packages:
26 26
   - git-daemon
27 27
   - lsyncd
28 28
   - nginx
29
+  - openssh-server
29 30
   - rsync
30 31
 
31 32
 repo_pkg_cache_server_distro_packages:

+ 1
- 0
vars/suse.yml View File

@@ -25,6 +25,7 @@ repo_server_distro_packages:
25 25
   - git-daemon
26 26
   - lsyncd
27 27
   - nginx
28
+  - openssh
28 29
   - rsync
29 30
 
30 31
 repo_pkg_cache_server_distro_packages:

Loading…
Cancel
Save