Browse Source

ssh_server can now run on openwrt

python3
Andrea Cimbalo 8 years ago
parent
commit
0606140dbb
2 changed files with 2 additions and 6 deletions
  1. +1
    -0
      firewall.yaml
  2. +1
    -6
      roles/ssh_server/tasks/main.yaml

+ 1
- 0
firewall.yaml View File

@ -3,3 +3,4 @@
roles: roles:
- role: openvpn - role: openvpn
- role: ssh_server - role: ssh_server
ansible_distribution: "openwrt"

+ 1
- 6
roles/ssh_server/tasks/main.yaml View File

@ -24,18 +24,13 @@
var: vm_public_key['content'] var: vm_public_key['content']
verbosity: 2 verbosity: 2
- name: read hostname
shell: /bin/hostname
register: hostname_result
changed_when: false
- name: generate host request - name: generate host request
set_fact: set_fact:
cert_request: cert_request:
type: 'sign_request' type: 'sign_request'
request: request:
keyType: 'ssh_host' keyType: 'ssh_host'
hostName: '{{ hostname_result.stdout }}.lilik.it'
hostName: '{{ ansible_docker_extra_args | default(ansible_hostname) }}.lilik.it'
keyData: "{{ vm_public_key['content'] | b64decode | replace('\n', '')}}" keyData: "{{ vm_public_key['content'] | b64decode | replace('\n', '')}}"
- debug: - debug:


Loading…
Cancel
Save