aboutsummaryrefslogtreecommitdiffstats
path: root/roles/sshd/tasks/main.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
commit0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch)
treed9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/sshd/tasks/main.yml
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/sshd/tasks/main.yml')
-rw-r--r--roles/sshd/tasks/main.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml
index f1af386..d9d14ff 100644
--- a/roles/sshd/tasks/main.yml
+++ b/roles/sshd/tasks/main.yml
@@ -1,5 +1,5 @@
- name: generate sshd configuration
- template:
+ ansible.builtin.template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
owner: 0
@@ -7,16 +7,16 @@
mode: 0644
- name: include key synchronization tasks
- include_tasks: synchronize_keys.yml
+ ansible.builtin.include_tasks: synchronize_keys.yml
- name: enable and restart sshd
- service:
+ ansible.builtin.service:
name: sshd
state: restarted
enabled: true
- name: check ssh connection
- wait_for:
+ ansible.builtin.wait_for:
port: "{{ ansible_port }}"
delay: 1
state: started
remember that computers suck.