mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-12-14 10:04:52 +01:00
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user