-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test - increase test-monitoring delay and replace type by builtin.stat
Change-Id: Ib8970fd5d6588442b31018825dc69c21476d78a3
- Loading branch information
Showing
2 changed files
with
19 additions
and
19 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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
--- | ||
- name: check if logCLI is present | ||
ansible.builtin.shell: type logcli | ||
register: logcli_exists | ||
ignore_errors: true | ||
ansible.builtin.stat: | ||
path: "~/bin/logcli" | ||
register: logcli_stat | ||
|
||
- name: Install logCLI | ||
block: | ||
- name: download and unzip logCLI | ||
ansible.builtin.unarchive: | ||
src: "https://github.com/grafana/loki/releases/download/v2.9.2/logcli-linux-amd64.zip" | ||
remote_src: yes | ||
mode: a+x | ||
dest: /tmp/ | ||
- name: download and unzip logCLI | ||
ansible.builtin.unarchive: | ||
src: "https://github.com/grafana/loki/releases/download/v2.9.2/logcli-linux-amd64.zip" | ||
remote_src: yes | ||
mode: a+x | ||
dest: /tmp/ | ||
|
||
- name: ensure ~/bin exists | ||
ansible.builtin.file: | ||
path: ~/bin | ||
state: directory | ||
mode: '0755' | ||
- name: ensure ~/bin exists | ||
ansible.builtin.file: | ||
path: ~/bin | ||
state: directory | ||
mode: "0755" | ||
|
||
- name: move logCLI to ~/bin/ | ||
command: mv /tmp/logcli-linux-amd64 ~/bin/logcli | ||
when: logcli_exists.rc > 0 | ||
- name: move logCLI to ~/bin/ | ||
command: mv /tmp/logcli-linux-amd64 ~/bin/logcli | ||
when: not logcli_stat.stat.exists |