Skip to content
Snippets Groups Projects
Commit 38de7942 authored by Trung Nguyen's avatar Trung Nguyen
Browse files

Fix roles/extra_packages

parent 2b699cc4
No related branches found
No related tags found
1 merge request!314Dgxdeploy
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
with_items: "{{ extra_packages }}" with_items: "{{ extra_packages }}"
become: true become: true
become_user: root become_user: root
when: ansible_os_family == 'RedHat' when:
- '"CentOS" in ansible_distribution'
register: result register: result
- name: "Install extra packages from epel only" - name: "Install extra packages from epel only"
...@@ -47,7 +48,8 @@ ...@@ -47,7 +48,8 @@
with_items: "{{ extra_packages_epel }}" with_items: "{{ extra_packages_epel }}"
become: true become: true
become_user: root become_user: root
when: ansible_os_family == 'RedHat' when:
- '"CentOS" in ansible_distribution'
- name: "Show yum install output" - name: "Show yum install output"
debug: debug:
......
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