Skip to content
This repository has been archived by the owner on Nov 14, 2021. It is now read-only.

YAMLify tasks #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
---
- name: install openssh
portage: package=net-misc/openssh
portage:
package:
net-misc/openssh
tags: packages

- name: configure sshd
template: >
src=sshd_config.j2
dest=/etc/ssh/sshd_config
owner=root group=root mode=0600
validate="/usr/sbin/sshd -t -f %s"
template:
dest: /etc/ssh/sshd_config
src: sshd_config.j2
owner: root
group: root
mode: 0600
validate: "/usr/sbin/sshd -t -f %s"
notify: restart sshd
tags: configuration

Expand Down