File: main.yml

package info (click to toggle)
golang-github-smallstep-certificates 0.20.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,144 kB
  • sloc: sh: 278; makefile: 170
file content (29 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

# These steps automate the installation guide here:
#  https://smallstep.com/docs/sso-ssh/hosts/

- name: Download step binary
  get_url:
    url: "https://files.smallstep.com/step-linux-{{ smallstep_install_step_version }}"
    dest: "/usr/local/bin/step-{{ smallstep_install_step_version }}"
    mode: '0755'

- name: Link binaries to correct version
  file:
    src: "/usr/local/bin/step-{{ smallstep_install_step_version }}"
    dest: "{{ item }}"
    state: link
  with_items:
    - /usr/bin/step
    - /usr/local/bin/step

- name: Link /usr/local/bin/step to correct binary version
  file:
    src: "/usr/local/bin/step-{{ smallstep_install_step_version }}"
    dest: /usr/local/bin/step
    state: link

- name: Ensure step-ssh is installed
  apt:
    deb: "https://files.smallstep.com/step-ssh_{{ smallstep_install_step_ssh_version }}_amd64.deb"
    state: present