Browse Source

lxc_host openssh trust ca public key

services
kaos 8 years ago
parent
commit
4783ae218f
8 changed files with 9 additions and 3 deletions
  1. +1
    -1
      ldap_server.yaml
  2. +6
    -0
      prepare_host.yaml
  3. +0
    -0
      roles/lxc_guest/defaults/main.yaml
  4. +0
    -0
      roles/lxc_guest/handlers/main.yaml
  5. +0
    -0
      roles/lxc_guest/tasks/main.yaml
  6. +0
    -0
      roles/lxc_guest/templates/config.j2
  7. +1
    -1
      team_server.yaml
  8. +1
    -1
      wiki_server.yaml

+ 1
- 1
ldap_server.yaml View File

@ -1,7 +1,7 @@
---
- hosts: lilikhost
roles:
- role: lxc_host
- role: lxc_guest
vm_name: ldap
- hosts: ldap
roles:


+ 6
- 0
prepare_host.yaml View File

@ -13,3 +13,9 @@
pip: name=lxc-python2 state=latest
- name: install utilities
apt: name=vim state=latest
- name: add ca pub key
command: |
echo "ssh-rsa {{ user_ca_key }}" > /etc/ssh/user_ca.pub
echo "TrustedUserCAKeys /etc/ssh/user_ca.pub" >> /etc/ssh/sshd_config
- name: restart ssh
service: name=ssh state=restarted

roles/lxc_host/defaults/main.yaml → roles/lxc_guest/defaults/main.yaml View File


roles/lxc_host/handlers/main.yaml → roles/lxc_guest/handlers/main.yaml View File


roles/lxc_host/tasks/main.yaml → roles/lxc_guest/tasks/main.yaml View File


roles/lxc_host/templates/config.j2 → roles/lxc_guest/templates/config.j2 View File


+ 1
- 1
team_server.yaml View File

@ -1,7 +1,7 @@
---
- hosts: lilikhost
roles:
- role: lxc_host
- role: lxc_guest
vm_name: team
- hosts: team
roles:


+ 1
- 1
wiki_server.yaml View File

@ -1,7 +1,7 @@
---
- hosts: lilikhost
roles:
- role: lxc_host
- role: lxc_guest
vm_name: wiki
- hosts: wiki
roles:


Loading…
Cancel
Save