added debian-to-pbs variables in a specific file

This commit is contained in:
Bryan Joshua Pedini 2022-09-11 19:09:57 +02:00
parent c5667b57e6
commit 46704c6b34
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
inventory.ini
vars

View File

@ -2,6 +2,9 @@
- hosts: all
become: true
tasks:
- name: Import related variables
ansible.builtin.include_vars:
file: debian-to-pbs.yml
- import_tasks: tasks/debian-general/hostname.yml
- import_tasks: tasks/debian-general/resolv-conf.yml
- import_tasks: tasks/debian-general/hosts-file.yml

4
vars/debian-to-pbs.yml Normal file
View File

@ -0,0 +1,4 @@
---
HOSTNAME: pve01.example.com
HOSTNAME_SHORT: pve01
PUBLIC_IP: 192.168.1.101