From 32d08914580a084c47a087704efece93bd790f0c Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Tue, 25 Sep 2018 20:51:37 +0200 Subject: Keep consistent ordering of rules Do - name: ... module: dest/path: 'destination on target' src: ... state: ... owner: ... group: ... mode: ... with_*: ... notify: ... tags: ... --- roles/space_server/tasks/sshd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/space_server/tasks/sshd.yml') diff --git a/roles/space_server/tasks/sshd.yml b/roles/space_server/tasks/sshd.yml index 75f865c..efbfa97 100644 --- a/roles/space_server/tasks/sshd.yml +++ b/roles/space_server/tasks/sshd.yml @@ -11,13 +11,13 @@ path: '/etc/ssh/sshd_config' regexp: '{{ item.regexp }}' line: '{{ item.line }}' - notify: - - restart sshd with_items: - regexp: '^PasswordAuthentication' line: 'PasswordAuthentication no' - regexp: '^#*GSSAPIAuthentication' line: 'GSSAPIAuthentication no' + notify: + - restart sshd - name: Enable sshd service systemd: -- cgit v1.2.1