initial commit

This commit is contained in:
Farhad Shahbazi
2016-03-05 16:30:21 +01:00
parent 879fdc14b4
commit acc8f15e9e
18 changed files with 679 additions and 0 deletions

20
tasks/openssh.yml Normal file
View File

@@ -0,0 +1,20 @@
---
- name: openssh - install
apt: name=openssh-server
tags: ['common', 'openssh']
- name: openssh - start and enable
service: name=ssh state=running enabled=yes
tags: ['common', 'openssh']
- name: openssh - config
template: dest=/etc/ssh/sshd_config src=sshd_config.j2 owner=root group=root mode=0600
notify: reload openssh
tags: ['common', 'openssh']
- name: openssh - root keys
authorized_key: user="root" key="{{ item }}"
with_items: "{{ common_openssh_keys_root }}"
when: common_openssh_keys_root
tags: ['common', 'openssh', 'ssh-keys']