fixes filenames and paths
This commit is contained in:
parent
cf93836737
commit
66f6438d53
|
@ -20,7 +20,7 @@
|
|||
- name: Retrieve the mozilla sops deb package from github (Debian based distro)
|
||||
get_url:
|
||||
url: "https://github.com/mozilla/sops/releases/download/v{{ sops_ver }}/sops_{{ sops_ver }}_amd64.deb"
|
||||
dest: "/tmp/sops-{{ sops_ver }}_amd64.deb"
|
||||
dest: "/tmp/sops_{{ sops_ver }}_amd64.deb"
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -29,8 +29,8 @@
|
|||
#######################################
|
||||
- name: Retrieve the mozilla sops linux binary file from github (Alpine)
|
||||
get_url:
|
||||
url: "https://github.com/mozilla/sops/releases/download/v{{ sops_ver }}/sops-{{ sops_ver }}.linux"
|
||||
dest: "/usr/local/bin/sops-{{ sops_ver }}.linux"
|
||||
url: "https://github.com/mozilla/sops/releases/download/v{{ sops_ver }}/sops-v{{ sops_ver }}.linux"
|
||||
dest: "/usr/local/bin/sops-v{{ sops_ver }}.linux"
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -39,18 +39,19 @@
|
|||
#######################################
|
||||
- name: Install sops deb package (Debian based distro)
|
||||
apt:
|
||||
deb: "/tmp/sops-{{ sops_ver }}_amd64.deb"
|
||||
deb: "/tmp/sops_{{ sops_ver }}_amd64.deb"
|
||||
state: present
|
||||
when: ansible_os_family == "Debian" and ansible_architecture == "x86_64"
|
||||
|
||||
#######################################
|
||||
- name: create symlink for sops binary (Alpine)
|
||||
file:
|
||||
src: "/usr/local/bin/sops-{{ sops_ver }}.linux"
|
||||
src: "/usr/local/bin/sops-v{{ sops_ver }}.linux"
|
||||
dest: "/usr/local/bin/sops"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
state: link
|
||||
when: ansible_distribution == "Alpine" and ansible_architecture == "x86_64"
|
||||
|
||||
# EOF
|
||||
|
|
Loading…
Reference in New Issue