Skip to content
Snippets Groups Projects
Commit 0e0411d7 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Provide yum module a list rather than loop providing one pkg name at a time.

parent cffd946e
No related branches found
No related tags found
No related merge requests found
...@@ -58,13 +58,10 @@ ...@@ -58,13 +58,10 @@
- ruby - ruby
- python3 - python3
state: present state: present
- name: Install system packages - name: Install system packages
yum: ansible.builtin.yum:
name: "{{ item }}" name: "{{ lookup('file', '{{ pkg_list_file }}').splitlines() }}"
state: present state: present
loop: "{{ lookup('file', '{{ pkg_list_file }}').splitlines() }}"
- name: Update nsswitch.conf to look for ldap - name: Update nsswitch.conf to look for ldap
ansible.builtin.replace: ansible.builtin.replace:
dest: /etc/nsswitch.conf dest: /etc/nsswitch.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment