Skip to content

Commit 59f0583

Browse files
committed
Ansible config and hosts updates.
1 parent c38e345 commit 59f0583

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

ansible.cfg

+4-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ any_errors_fatal = True
6969

7070
[inventory]
7171
# enable inventory plugins, default: 'host_list', 'script', 'yaml', 'ini', 'auto'
72-
enable_plugins = yaml, ini
72+
# we provide an ini file by default in ce-deploy-config-example.
73+
# you can use multiple plugins at once, e.g. ini and yaml - Ansible will load all recognised inventory files.
74+
enable_plugins = ini, yaml, host_list
7375
# uncomment the below line and comment the above for AWS EC2 inventory discovery
74-
#enable_plugins = amazon.aws.aws_ec2, yaml, ini
76+
#enable_plugins = amazon.aws.aws_ec2, ini, yaml, host_list
7577

7678
[ssh_connection]
7779
# Enabling pipelining reduces the number of SSH operations required to

hosts/hosts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Docs: https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html
2+
# Plugin page: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/ini_inventory.html
3+
[deploy]
4+
localhost ansible_connection=local # do not use ssh for localhost connections to deploy server

hosts/hosts.yml

-4
This file was deleted.

0 commit comments

Comments
 (0)