build
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
2025-11-21 00:39:51 +01:00
parent 19bdbfde78
commit 57b714271a
7 changed files with 42 additions and 4 deletions

View File

@@ -1,6 +1,11 @@
- name: Omv Setup
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
block:
# - name: Gather facts
# ansible.builtin.setup:
# - name: Print
# ansible.builtin.debug:
# msg: "{{ ansible_facts }}"
- name: Include vault
ansible.builtin.include_vars:
file: jaydee.yml
@@ -10,6 +15,21 @@
ansible.builtin.file:
state: absent
path: "{{ dest_folder }}"
- name: "Check if listed package is installed or not on Debian Linux family"
ansible.builtin.package:
name: "{{ item }}"
state: present
check_mode: true
loop:
- git
register: git_installed
- name: Include role only if missing
ansible.builtin.include_role:
name: git
when: not git_installed
- name: Pull repo
tags:
- git_pull