aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/common/tasks
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--roles/common/tasks/main.yml5
-rw-r--r--roles/common/tasks/tool.yml4
2 files changed, 5 insertions, 4 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index 558f268..fb0eaed 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -1,4 +1,5 @@
-- include_tasks: tool.yml
+- name: Check available tools
+ ansible.builtin.include_tasks: tool.yml
loop:
- apt
- docker
@@ -11,6 +12,6 @@
- name: Check if /etc is versioned
become: true
- stat:
+ ansible.builtin.stat:
path: /etc/.git/config
register: etc_versioned
diff --git a/roles/common/tasks/tool.yml b/roles/common/tasks/tool.yml
index f8fda64..48d0acc 100644
--- a/roles/common/tasks/tool.yml
+++ b/roles/common/tasks/tool.yml
@@ -1,8 +1,8 @@
- name: "Check for {{ item }}"
- command: "{{ item }} --version"
+ ansible.builtin.command: "{{ item }} --version"
register: cmd_result
changed_when: false
failed_when: false
- name: "Set fact about {{ item }}"
- set_fact: "has_{{ item | replace('-', '_') }}={{ cmd_result.rc == 0 }}"
+ ansible.builtin.set_fact: "has_{{ item | replace('-', '_') }}={{ cmd_result.rc == 0 }}"