Kapitel 12: fact caching
This commit is contained in:
parent
9cc617be45
commit
75b7132ef3
37
12/ansible.cfg
Normal file
37
12/ansible.cfg
Normal 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
7
12/ping.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- hosts:
|
||||
- all
|
||||
- localhost
|
||||
tasks:
|
||||
- ping:
|
||||
|
5
12/setup.yml
Normal file
5
12/setup.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- hosts: all
|
||||
|
||||
tasks: []
|
||||
|
6
helper/12_packages.sh
Executable file
6
helper/12_packages.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo apt install --no-install-recommends --yes \
|
||||
jq \
|
||||
nmap\
|
||||
|
Loading…
Reference in a new issue