Skip to content

Commit

Permalink
Fixing CentOS zsh install and testing for it
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrenstein committed Jul 17, 2020
1 parent fa6fad4 commit 940c34e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/prereqs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
yum:
name: zsh
state: present
when: ansible_distribution == "Ubuntu"
when: ansible_distribution == "CentOS"

- name: Create an admin group for password-less sudo options
group:
Expand Down
5 changes: 5 additions & 0 deletions tests/smoke/repo-role/no-user-management/prereqs_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

if ['ubuntu', 'centos'].include?(os[:name])

# Verify zsh is installed
describe package('zsh') do
it { should be_installed }
end

# Verify the sysadmins group exists
describe group('sysadmins') do
it { should exist }
Expand Down
5 changes: 5 additions & 0 deletions tests/smoke/repo-role/standard/prereqs_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

if ['ubuntu', 'centos'].include?(os[:name])

# Verify zsh is installed
describe package('zsh') do
it { should be_installed }
end

# Verify the sysadmins group exists
describe group('sysadmins') do
it { should exist }
Expand Down

0 comments on commit 940c34e

Please sign in to comment.