Kapitel 12: fact caching

This commit is contained in:
Sven Velt 2024-11-29 10:12:11 +01:00
parent 9cc617be45
commit 75b7132ef3
4 changed files with 55 additions and 0 deletions

37
12/ansible.cfg Normal file
View file

@ -0,0 +1,37 @@
[defaults]
# Inventory
inventory = ./hosts.ini
# Roles paths
roles_path = ./roles:./roles.extern:./roles.webcluster:/etc/ansible/roles
# Interpreter Discovery - Ohne Warnings
interpreter_python = auto_silent
# SSH
remote_user = root
#host_key_checking = False
# Retry files
retry_files_enabled = yes
retry_files_save_path = ./.cache/Retry/
# Log files
#log_path = ./log/ansible.log
# Fact caching
gathering = smart
fact_caching_timeout = 86400
fact_caching = yaml
fact_caching_connection = ./.cache/facts/
# Farben ausschalten
#nocolor = 1
[colors]
# Für dunklen Hintergrund in der Console
verbose = bright blue
debug = bright gray
error = bright red

7
12/ping.yml Normal file
View file

@ -0,0 +1,7 @@
---
- hosts:
- all
- localhost
tasks:
- ping:

5
12/setup.yml Normal file
View file

@ -0,0 +1,5 @@
---
- hosts: all
tasks: []

6
helper/12_packages.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
sudo apt install --no-install-recommends --yes \
jq \
nmap\