From 145510f2b5606989957f4c00009c89b3693d9870 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Mon, 26 Aug 2024 13:36:51 +0200
Subject: [PATCH] feat: add site.yml playbook

---
 site.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 site.yml

diff --git a/site.yml b/site.yml
new file mode 100644
index 0000000..58f5e62
--- /dev/null
+++ b/site.yml
@@ -0,0 +1,27 @@
+---
+- hosts: "*"
+  pre_tasks:
+    - name: Verify that the installed version of Ansible meets this playbook's version requirements.
+      assert:
+        that: "ansible_version.full is version_compare('2.10', '>=')"
+        msg: >
+          "You must update Ansible to at least 2.10 to use this playbook."
+  # Collect facts from remote system? Possible values: true, false
+  gather_facts: true
+  # Gather only certain subsects of facts. Ansible supports network, hardware, virtual, facter, ohai as subset.
+  #gather_subset:
+  #  - network
+  #  - virtual
+  #  - hardware
+  # any_error_fatal will mark all the hosts as failed if fails and immediately abort the playbook execution. Possible values: true, false
+  any_errors_fatal: false
+  # max_fail_percentage allows you to abort the play if certain threshold of failures have been reached.
+  max_fail_percentage: 30
+  serial: 30
+  # hide sensitive information in verbose/debugging output from others. Possible values: true, false
+  no_log: false
+  # execution strategy, possible values: debug, linear, serial, free (https://docs.ansible.com/ansible/latest/user_guide/playbooks_strategies.html)
+  strategy: linear
+
+  roles:
+    - { role: "ansible_lza_amrepo_backup", become: true }
-- 
GitLab