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.

ssh.yaml 462B

4 years ago
4 years ago
1234567891011121314151617181920212223242526
  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.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. user: true