Use inventory file
This commit is contained in:
parent
a8b30402e3
commit
15d282cfce
3 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
[defaults]
|
||||
ask_vault_pass = True
|
||||
inventory = inventory.yml
|
||||
|
||||
[privilege_escalation]
|
||||
become_ask_pass = True
|
||||
|
|
|
|||
4
inventory.yml
Normal file
4
inventory.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
bookworm:
|
||||
hosts:
|
||||
fudiggity:
|
||||
ansible_connection: local
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Provision debian server
|
||||
hosts: localhost
|
||||
hosts: bookworm
|
||||
pre_tasks:
|
||||
- name: Install shared packages
|
||||
become: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue