summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-10-12 16:30:20 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-10-12 16:30:20 +0200
commitc0944f2739ae3abc57f561a4a74d2d97f2aa730e (patch)
tree8dfb19044ebef856120573001c5b8cd30c222783
parentrefactoring nginx config snippets (diff)
improve sshd config
-rw-r--r--inventory/host_vars/sk-torrent.yml2
-rw-r--r--roles/sshd/tasks/main.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/inventory/host_vars/sk-torrent.yml b/inventory/host_vars/sk-torrent.yml
index cd691259..631e7dca 100644
--- a/inventory/host_vars/sk-torrent.yml
+++ b/inventory/host_vars/sk-torrent.yml
@@ -21,7 +21,7 @@ install:
interfaces:
- bridge: br-public
name: primary0
- autostart: False
+ autostart: True
network:
nameservers: "{{ hostvars[vm_host].vm_host.network.dns }}"
diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml
index 9d35e750..2977d20b 100644
--- a/roles/sshd/tasks/main.yml
+++ b/roles/sshd/tasks/main.yml
@@ -17,7 +17,7 @@
loop_control:
label: "{{ item.key }} = {{ item.value }}"
lineinfile:
- regexp: "^#?\\s*{{ item.key }}"
+ regexp: "^#?\\s*{{ item.key }}\\s"
line: "{{ item.key }} {{ item.value }}"
dest: /etc/ssh/sshd_config
mode: 0644