main.yml 874 B

1234567891011121314151617181920212223242526272829
  1. # These steps automate the installation guide here:
  2. # https://smallstep.com/docs/sso-ssh/hosts/
  3. - name: Download step binary
  4. get_url:
  5. url: "https://files.smallstep.com/step-linux-{{ smallstep_install_step_version }}"
  6. dest: "/usr/local/bin/step-{{ smallstep_install_step_version }}"
  7. mode: '0755'
  8. - name: Link binaries to correct version
  9. file:
  10. src: "/usr/local/bin/step-{{ smallstep_install_step_version }}"
  11. dest: "{{ item }}"
  12. state: link
  13. with_items:
  14. - /usr/bin/step
  15. - /usr/local/bin/step
  16. - name: Link /usr/local/bin/step to correct binary version
  17. file:
  18. src: "/usr/local/bin/step-{{ smallstep_install_step_version }}"
  19. dest: /usr/local/bin/step
  20. state: link
  21. - name: Ensure step-ssh is installed
  22. apt:
  23. deb: "https://files.smallstep.com/step-ssh_{{ smallstep_install_step_ssh_version }}_amd64.deb"
  24. state: present