From 85b5ab0d93dc77b1588451dce7fad7a71210ea34 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Sun, 30 Jan 2022 19:45:07 -0500 Subject: [PATCH] Default variables --- roles/common/defaults/main.yml | 2 ++ roles/common/tasks/main.yml | 5 +++++ vars/tycho.yml | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 roles/common/defaults/main.yml create mode 100644 vars/tycho.yml diff --git a/roles/common/defaults/main.yml b/roles/common/defaults/main.yml new file mode 100644 index 0000000..8afd506 --- /dev/null +++ b/roles/common/defaults/main.yml @@ -0,0 +1,2 @@ +--- +disable_usb_wake: false diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 9058af4..3dfce46 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,4 +1,9 @@ --- +- name: Import machine-specific variables + ignore_errors: yes # if the file doesn't exist, np, we have a default.yml + include_vars: + file: "{{ ansible_hostname }}.yml" + - include: selinux.yml - include: packages.yml - include: users.yml diff --git a/vars/tycho.yml b/vars/tycho.yml new file mode 100644 index 0000000..69cc447 --- /dev/null +++ b/vars/tycho.yml @@ -0,0 +1,2 @@ +--- +disable_usb_wake: true