-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from tigattack/feat/install_mergerfs_tools
- Loading branch information
Showing
6 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
|
||
- name: Ensure git is installed | ||
ansible.builtin.package: | ||
name: git | ||
state: present | ||
|
||
- name: Clone mergerfs-tools # noqa latest[git] | ||
ansible.builtin.git: | ||
repo: >- | ||
{{ | ||
mergerfs_tools_github_repo_url if mergerfs_tools_github_repo_url.endswith('.git') | ||
else (mergerfs_tools_github_repo_url + '.git') | ||
}} | ||
dest: "{{ mergerfs_tools_clone_dir }}" | ||
|
||
- name: Discover tool files | ||
ansible.builtin.find: | ||
paths: "{{ mergerfs_tools_clone_dir }}/src" | ||
file_type: file | ||
register: mergerfs_tools_files | ||
|
||
- name: Install mergerfs-tools | ||
ansible.builtin.command: | ||
cmd: "install -v -m 0755 -o root -g root -D -C {{ item }} /usr/local/bin" | ||
chdir: "{{ mergerfs_tools_clone_dir }}/src" | ||
loop: "{{ mergerfs_tools_files.files | map(attribute='path') | map('basename') }}" | ||
register: mergerfs_tools_install | ||
changed_when: mergerfs_tools_install.stdout != "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters