inital version
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
cache/
|
||||
*.log
|
||||
*.key
|
||||
*.pub
|
||||
*.swp
|
||||
30
ansible.cfg
Normal file
30
ansible.cfg
Normal file
@@ -0,0 +1,30 @@
|
||||
[defaults]
|
||||
inventory = /data/ansible/ansible.d/inventory
|
||||
private_key_file = /data/ansible/ansible.d/ansible.key
|
||||
log_path = /data/ansible/ansible.d/ansible.log
|
||||
roles_path = ~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/data/ansible/roles/
|
||||
collections_paths = ~/.ansible/collections:/usr/share/ansible/collections:/data/ansible/collections
|
||||
library = ~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/data/ansible/ansible.d/modules
|
||||
|
||||
stdout_callback = yaml
|
||||
forks = 10
|
||||
#poll_interval = 0.001
|
||||
#ask_pass = False
|
||||
#transport = smart
|
||||
host_key_checking = True
|
||||
gathering = smart
|
||||
gather_subset = all
|
||||
gather_timeout = 10
|
||||
fact_caching = jsonfile
|
||||
fact_caching_connection = /data/ansible/ansible.d/cache.d
|
||||
fact_caching_timeout = 3600
|
||||
callbacks_enabled = timer
|
||||
nocows = 1
|
||||
|
||||
[inventory]
|
||||
#enable_plugins = host_list, script, auto, yaml, ini, toml
|
||||
|
||||
[privilege_escalation]
|
||||
become_method = sudo
|
||||
#become = False
|
||||
#become_ask_pass = False
|
||||
18
ansible.d/inventory
Normal file
18
ansible.d/inventory
Normal file
@@ -0,0 +1,18 @@
|
||||
SDExample01 ansible_host=127.0.0.1
|
||||
|
||||
[docker]
|
||||
|
||||
[setup]
|
||||
|
||||
[setup:children]
|
||||
docker
|
||||
|
||||
[init]
|
||||
SDExample01
|
||||
|
||||
[all:vars]
|
||||
ansible_port=2020
|
||||
ansible_python_interpreter=/usr/bin/python3
|
||||
|
||||
[init:vars]
|
||||
ansible_port=22
|
||||
Reference in New Issue
Block a user