Skip to content

Commit 0c17410

Browse files
wtripp180901sjpb
andauthored
k9s tags and variable renames
Co-authored-by: Steve Brasier <[email protected]>
1 parent 100632f commit 0c17410

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ansible/extras.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
- name: Install k9s
4141
become: yes
4242
hosts: k9s
43+
tags: k9s
4344
tasks:
4445
- import_role:
4546
name: k9s

ansible/roles/k9s/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- name: Check if k9s is installed
44
ansible.builtin.stat:
55
path: "/usr/bin/k9s"
6-
register: result
6+
register: _k9s_stat_result
77

88
- name: Install k9s and clean up temporary files
99
block:
@@ -14,7 +14,7 @@
1414
owner: root
1515
group: root
1616
mode: "744"
17-
when: not result.stat.exists
17+
when: not _k9s_stat_result.stat.exists
1818

1919
- name: Download k9s
2020
ansible.builtin.get_url:
@@ -41,4 +41,4 @@
4141
ansible.builtin.file:
4242
path: /tmp/k9s
4343
state: absent
44-
when: not result.stat.exists
44+
when: not _k9s_stat_result.stat.exists

0 commit comments

Comments
 (0)