tests: Declare inventory file types to Visual Studio Code and Vim

Works with the VS Code modeline extension. Enables syntax highlighting.
pull/1032/head
Alex Willmer 3 months ago
parent 591152bef0
commit adfd4e17f3

@ -1,3 +1,5 @@
# code: language=ini
# vim: syntax=dosini
# become_same_user.yml
bsu-joe ansible_user=joe

@ -1,3 +1,4 @@
# code: language=ini
# vim: syntax=dosini
# Connection delegation scenarios. It's impossible to connect to them, but their would-be

@ -1,9 +1,12 @@
# code: language=ini
# vim: syntax=dosini
# When running the tests outside CI, make a single 'target' host which is the
# local machine. The ansible_user override is necessary since some tests want a
# fixed ansible.cfg remote_user setting to test against.
target ansible_host=localhost ansible_user="{{lookup('env', 'USER')}}"
# FIXME Hardcoded by replacement in some CI runs https://github.com/mitogen-hq/mitogen/issues/1022
# and os.environ['USER'] is not populated on Azure macOS runners.
target ansible_host=localhost ansible_user="{{ lookup('pipe', 'whoami') }}"
[test-targets]
target

@ -1,3 +1,4 @@
# code: language=ini
# vim: syntax=dosini
# Used for manual testing.

@ -1,3 +1,4 @@
# code: language=ini
# vim: syntax=dosini
# issue #511, #536: we must not define an explicit localhost, as some

@ -1,3 +1,6 @@
# code: language=ini
# vim: syntax=dosini
# integration/transport_config
# Hosts with twiddled configs that need to be checked somehow.

Loading…
Cancel
Save