fixes filenames and paths

This commit is contained in:
Radar231 2022-01-03 11:02:35 -05:00
parent cf93836737
commit 66f6438d53
1 changed files with 6 additions and 5 deletions

View File

@ -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