add ansible.cfg; reorganize inventory a bit
This commit is contained in:
parent
b180d88420
commit
a27735b5cf
5 changed files with 30 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,4 @@
|
||||||
/inventory/*
|
/inventory/*
|
||||||
!/inventory/.gitkeep
|
|
||||||
!/inventory/host_vars/.gitkeep
|
|
||||||
|
|
||||||
# ignore roles pulled by ansible-galaxy
|
# ignore roles pulled by ansible-galaxy
|
||||||
/roles/galaxy/*
|
/roles/galaxy/*
|
||||||
|
|
29
ansible.cfg
Normal file
29
ansible.cfg
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
[defaults]
|
||||||
|
forks = 50
|
||||||
|
timeout = 86400
|
||||||
|
strategy = linear
|
||||||
|
ansible_managed = Autogenerated file, do NOT edit manually.
|
||||||
|
retry_files_enabled = False
|
||||||
|
|
||||||
|
# Paths
|
||||||
|
inventory = inventory/hosts
|
||||||
|
roles_path = roles
|
||||||
|
log_path = /tmp/mash.log
|
||||||
|
|
||||||
|
# Remote default
|
||||||
|
remote_user = root
|
||||||
|
host_key_checking = False
|
||||||
|
|
||||||
|
# Display
|
||||||
|
display_skipped_hosts = False
|
||||||
|
|
||||||
|
# Facts
|
||||||
|
gathering = smart
|
||||||
|
fact_caching = jsonfile
|
||||||
|
fact_caching_connection=/tmp/mash
|
||||||
|
|
||||||
|
|
||||||
|
[ssh_connection]
|
||||||
|
pipelining = True
|
||||||
|
ssh_args = -C -o ControlMaster=auto -o ControlPersist=30m -o PreferredAuthentications=publickey
|
||||||
|
control_path = /tmp/mash/ssh-%%h-%%p-%%r
|
|
@ -7,7 +7,7 @@ To configure the playbook, you need to have done the following things:
|
||||||
|
|
||||||
You can then follow these steps inside the playbook directory:
|
You can then follow these steps inside the playbook directory:
|
||||||
|
|
||||||
1. create a directory to hold your configuration (`mkdir inventory/host_vars/<your-domain>`)
|
1. create a directory to hold your configuration (`mkdir -p inventory/host_vars/<your-domain>`)
|
||||||
|
|
||||||
2. copy the sample configuration file (`cp examples/vars.yml inventory/host_vars/<your-domain>/vars.yml`)
|
2. copy the sample configuration file (`cp examples/vars.yml inventory/host_vars/<your-domain>/vars.yml`)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue