Use inventory file

This commit is contained in:
Sonny Bakker 2025-04-26 09:40:45 +02:00
parent a8b30402e3
commit 15d282cfce
3 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
[defaults]
ask_vault_pass = True
inventory = inventory.yml
[privilege_escalation]
become_ask_pass = True

4
inventory.yml Normal file
View file

@ -0,0 +1,4 @@
bookworm:
hosts:
fudiggity:
ansible_connection: local

View file

@ -1,5 +1,5 @@
- name: Provision debian server
hosts: localhost
hosts: bookworm
pre_tasks:
- name: Install shared packages
become: true