aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/common/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-25 14:40:44 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-25 14:40:44 +0100
commitb02a8c40c76cb2e61c7a664ec156407101201a24 (patch)
tree0e046b783331db1bbba78bee75dbdac2e67e420a /roles/common/tasks/main.yml
parentlinting (diff)
downloadmaintenance-b02a8c40c76cb2e61c7a664ec156407101201a24.tar.gz
maintenance-b02a8c40c76cb2e61c7a664ec156407101201a24.zip
move tool existence conditionals to role common
Diffstat (limited to 'roles/common/tasks/main.yml')
-rw-r--r--roles/common/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
new file mode 100644
index 0000000..558f268
--- /dev/null
+++ b/roles/common/tasks/main.yml
@@ -0,0 +1,16 @@
+- include_tasks: tool.yml
+ loop:
+ - apt
+ - docker
+ - flatpak
+ - pacman
+ - rate-mirrors
+ - snap
+ - vagrant
+ - yay
+
+- name: Check if /etc is versioned
+ become: true
+ stat:
+ path: /etc/.git/config
+ register: etc_versioned