Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
636 B

  1. ---
  2. - hosts: vm_hosts
  3. tasks:
  4. - name: install lxc related packages
  5. apt: name={{ item }} state=latest
  6. with_items:
  7. - lxc
  8. - lxc-dev
  9. - python
  10. - python-dev
  11. - python-pip
  12. - name: install lxc python support
  13. pip: name=lxc-python2 state=latest
  14. - name: install utilities
  15. apt: name=vim state=latest
  16. - name: add ca pub key
  17. command: |
  18. echo "ssh-rsa {{ user_ca_key }}" > /etc/ssh/user_ca.pub
  19. echo "TrustedUserCAKeys /etc/ssh/user_ca.pub" >> /etc/ssh/sshd_config
  20. - name: restart ssh
  21. service: name=ssh state=restarted