add github inventory

This commit is contained in:
Gabriel Augendre 2024-10-11 11:47:38 +02:00
parent 83b33455f0
commit c4cd000c13
3 changed files with 10 additions and 1 deletions

View file

@ -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"

9
inventories/github.yaml Normal file
View file

@ -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