-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add jq and etcdctl requirements to support other OS
Signed-off-by: Kevin Lefevre <[email protected]>
- Loading branch information
1 parent
83e816a
commit d744124
Showing
5 changed files
with
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
- name: Bootstrap | Download etcd binaries | ||
unarchive: | ||
src: "{{ etcd_release_url }}" | ||
dest: "{{ etcd_release_dir }}" | ||
remote_src: yes | ||
extra_opts: [--strip-components=1] | ||
exclude: | ||
- "*.md" | ||
- "*.json" | ||
- "*.yml" | ||
- "*.rules" | ||
- "*.png" | ||
- "Documentation/*" | ||
|
||
- name: Bootstrap | List etcd binaries | ||
find: | ||
paths: "{{ etcd_release_dir }}" | ||
register: etcd_binaries | ||
|
||
- name: Bootstrap | Symlink etcd binaries | ||
file: | ||
src: "{{ item.path }}" | ||
dest: "{{ bin_dir }}/{{ item.path | basename }}" | ||
state: link | ||
with_items: "{{ etcd_binaries.files }}" |
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,7 @@ | ||
--- | ||
- name: Bootstrap | Get jq binary | ||
get_url: | ||
url: "{{ jq_release_url }}" | ||
mode: 0755 | ||
dest: "{{ bin_dir }}/jq" | ||
force: yes |
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 |
---|---|---|
|
@@ -7,3 +7,5 @@ | |
- include_tasks: kernel.yml | ||
|
||
- include_tasks: docker.yml | ||
|
||
- include_tasks: requirements.yml |
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,12 @@ | ||
--- | ||
- name: Bootstrap | Ensure requirements required directories exist | ||
file: | ||
path: "{{ item }}" | ||
state: directory | ||
with_items: | ||
- "{{ etcd_release_dir }}" | ||
- "{{ bin_dir }}" | ||
|
||
- include_tasks: etcdctl.yml | ||
|
||
- include_tasks: jq.yml |