forked from sloria/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhosts
38 lines (29 loc) · 1003 Bytes
/
hosts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[local]
localhost
[local:vars]
ansible_connection=local
[pi]
styx
[pi:vars]
ansible_connection=ssh
ansible_python_interpreter=/usr/bin/python3
[aws]
redmine-aws
[aws:vars]
ansible_connection=ssh
# Can't install yum package on Amazon Linux 2 when ansible is installed using python 3
# https://github.com/ansible/ansible/issues/62722#issuecomment-537096638
ansible_python_interpreter=/usr/bin/python
[ocean]
gotham
[aws:vars]
ansible_connection=ssh
[hetzner]
rlyeh
[hetzner:vars]
# Hetzner doesn't have /usr/bin/python, only /usr/bin/python3.
# Set Python explicity to avoid the following error after copying some files to the remote host:
# "Platform unknown on host rlyeh is using the discovered Python interpreter at /usr/bin/python,
# but future installation of another Python interpreter could change the meaning of that path.
# See https://docs.ansible.com/ansible-core/2.15/reference_appendices/interpreter_discovery.html for more information."
ansible_python_interpreter=/usr/bin/python3