Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

ssh.yaml 462B

4 år sedan
4 år sedan
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