Skip to content

Commit

Permalink
adding hauler store
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed May 14, 2024
1 parent 89adf1f commit 0711d31
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
25 changes: 20 additions & 5 deletions roles/install_utils_nerdctl/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,32 @@
path: /usr/local/bin/nerdctl
register: file_data

- name: Download Nerdctl bin into /usr/local/bin
#- name: Download Nerdctl bin into /usr/local/bin
# ansible.builtin.unarchive:
# src: "http://{{ hauler_server }}:8080/nerdctl.tar.gz"
# dest: "/usr/local/bin/"
# owner: "{{ admin_user }}"
# group: "{{ admin_user }}"
# mode: '0750'
# remote_src: true
# validate_certs: false
# extra_opts: ['--strip-components=1']
# when: not file_data.stat.exists

- name: Download Nerdctl archive
ansible.builtin.get_url:
url: "http://{{ hauler_server }}:8080/nerdctl.tar.gz"
dest: "/usr/local/bin/nerdctl-archive.tar.gz"
validate_certs: false

- name: Unarchive Nerdctl
ansible.builtin.unarchive:
src: "http://{{ hauler_server }}:8080/nerdctl.tar.gz"
src: "/usr/local/bin/nerdctl-archive.tar.gz"
dest: "/usr/local/bin/"
owner: "{{ admin_user }}"
group: "{{ admin_user }}"
mode: '0750'
remote_src: true
validate_certs: false
extra_opts: ['--strip-components=1']
when: not file_data.stat.exists

- name: Copy NERDCTL configuration file
ansible.builtin.template:
Expand Down
2 changes: 2 additions & 0 deletions roles/install_utils_nerdctl/tasks/prerequis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
with_items:
- tar
- gzip
- unzip
become: true
when:
- ansible_os_family == "RedHat"
Expand All @@ -19,6 +20,7 @@
with_items:
- tar
- gzip
- unzip
become: true
when:
- ansible_os_family == "Debian"

0 comments on commit 0711d31

Please sign in to comment.