Skip to content
Snippets Groups Projects
Commit cbaa7523 authored by Chris Hines's avatar Chris Hines
Browse files

update the extra pacakges role to make it easier to cluster specific package lists

Former-commit-id: 5941db0c
parent c9de8126
No related branches found
No related tags found
No related merge requests found
---
- include_vars: "{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yml"
- name: load vars
include_vars: "{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yml"
when: extra_packages is not defined
#- name: "Install extra packages"
# yum: "name={{ item }} state=present"
# with_items: "{{ packages }}"
# become: true
# become_user: root
# when: ansible_os_family == 'RedHat'
- name: "Install package groups"
yum: "name={{ item }} state=present"
with_items: "{{ package_groups }}"
- name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
with_items: "{{ extra_packages }}"
become: true
become_user: root
when: ansible_os_family == 'RedHat'
- name: "Install environment groups"
yum: "name={{ item }} state=present"
with_items: "{{ environment_groups }}"
- name: "Install extra packages"
apt: "name={{ item }} update_cache=yes state=present"
with_items: "{{ extra_packages }}"
become: true
become_user: root
when: ansible_os_family == 'RedHat'
#- name: "Install extra packages"
# apt: "name={{ item }} state=present"
# with_items: "{{ packages }}"
# become: true
# become_user: root
# when: ansible_os_family == 'Debian'
when: ansible_os_family == 'Debian'
# all packages to be installed on centos 7
package_groups:
# - '@development-tools'
extra_packages:
- '@Development Tools'
environment_groups:
# - "@^gnome-desktop-environment" #gnome environment
- '@^Server with GUI'
- '@^GNOME Desktop'
- '@^KDE Plasma Workspaces'
packages:
- lzip
- screen
- mailx
......
# all packages to be installed on centos 7
packages:
extra_packages:
- screen
- mailutils
- subversion
......
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