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

Merge branch 'extra_packages' into 'master'

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

See merge request !63


Former-commit-id: f6fac19a
parents c9de8126 cbaa7523
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