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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

28 lines
508B

  1. ---
  2. - name: ssh-keys
  3. copy:
  4. src: ~/ssh-keys/
  5. dest: ~/ssh-keys
  6. mode: u=rw,g=,o=
  7. - name: ssh auto config
  8. template:
  9. src: ssh/ssh.config.j2
  10. dest: ~/.ssh/config.auto
  11. - name: include ssh auto config
  12. lineinfile:
  13. path: ~/.ssh/config
  14. line: Include config.auto
  15. insertbefore: BOF
  16. create: true
  17. - name: enable and start ssh-agent user service
  18. systemd:
  19. name: ssh-agent.service
  20. state: started
  21. enabled: true
  22. scope: user
  23. when: ansible_distribution == 'Debian'