diff --git a/.mise.toml b/.mise.toml index e849db3..9cec2f4 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,3 +1,3 @@ [env] -ANSIBLE_INVENTORY = "{{config_root}}/inventory.yaml" +ANSIBLE_INVENTORY = "{{config_root}}/inventories/local.yaml" ANSIBLE_VAULT_PASSWORD_FILE = "{{config_root}}/vault.pass" diff --git a/inventories/github.yaml b/inventories/github.yaml new file mode 100644 index 0000000..2d78633 --- /dev/null +++ b/inventories/github.yaml @@ -0,0 +1,9 @@ +--- +servers: + hosts: + ubuntu: + ansible_host: "{{ lookup('env', 'DEPLOY_HOST') }}" + ansible_port: "{{ lookup('env', 'DEPLOY_PORT') }}" + ansible_user: "{{ lookup('env', 'DEPLOY_USERNAME') }}" + ansible_ssh_private_key_file: "{{ lookup('env', 'KEY_FILE') }}" + ansible_python_interpreter: auto_silent diff --git a/inventory.yaml b/inventories/local.yaml similarity index 100% rename from inventory.yaml rename to inventories/local.yaml