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" - name: "Install extra packages"
# yum: "name={{ item }} state=present" yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
# with_items: "{{ packages }}" with_items: "{{ extra_packages }}"
# become: true
# become_user: root
# when: ansible_os_family == 'RedHat'
- name: "Install package groups"
yum: "name={{ item }} state=present"
with_items: "{{ package_groups }}"
become: true become: true
become_user: root become_user: root
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: "Install environment groups" - name: "Install extra packages"
yum: "name={{ item }} state=present" apt: "name={{ item }} update_cache=yes state=present"
with_items: "{{ environment_groups }}" with_items: "{{ extra_packages }}"
become: true become: true
become_user: root become_user: root
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'Debian'
#- name: "Install extra packages"
# apt: "name={{ item }} state=present"
# with_items: "{{ packages }}"
# become: true
# become_user: root
# when: ansible_os_family == 'Debian'
# all packages to be installed on centos 7 extra_packages:
package_groups:
# - '@development-tools'
- '@Development Tools' - '@Development Tools'
environment_groups:
# - "@^gnome-desktop-environment" #gnome environment
- '@^Server with GUI' - '@^Server with GUI'
- '@^GNOME Desktop' - '@^GNOME Desktop'
- '@^KDE Plasma Workspaces' - '@^KDE Plasma Workspaces'
packages:
- lzip - lzip
- screen - screen
- mailx - mailx
......
# all packages to be installed on centos 7 # all packages to be installed on centos 7
packages: extra_packages:
- screen - screen
- mailutils - mailutils
- subversion - 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