diff --git a/ansible/group_vars/all b/ansible/group_vars/all new file mode 100644 index 0000000000000000000000000000000000000000..03893829db868a67fcf1c236e7ba4deb95b47cfc --- /dev/null +++ b/ansible/group_vars/all @@ -0,0 +1,3 @@ +--- + #This file path is relative to the ansible playbook. + pkg_list_file: "cheaha-compute-yum-pkg-list.txt" diff --git a/ansible/roles/cheaha.node/tasks/main.yml b/ansible/roles/cheaha.node/tasks/main.yml index b0aab772f5386fde114ad9b22e4a7a47ac0b6014..0ce4079ad3eb4dd06c5c56a5f9f5467b1ae7474c 100644 --- a/ansible/roles/cheaha.node/tasks/main.yml +++ b/ansible/roles/cheaha.node/tasks/main.yml @@ -63,7 +63,7 @@ yum: name: "{{ item }}" state: present - loop: "{{ lookup('file', 'cheaha-compute-yum-pkg-list.txt').splitlines() }}" + loop: "{{ lookup('file', '{{ pkg_list_file }}').splitlines() }}" - name: Update nsswitch.conf to look for ldap ansible.builtin.replace: