diff options
| author | Michael Scherer <misc@zarb.org> | 2016-04-09 19:08:50 +0200 |
|---|---|---|
| committer | Kevin Fenzi <kevin@scrye.com> | 2016-04-09 20:26:00 +0000 |
| commit | 9cea8170d4eabf19d5268b6f04aead48e0ad2f8e (patch) | |
| tree | 2ead569a48049fc9fe0e3d68e87f55f00ba16fb1 /roles/fas_client/tasks | |
| parent | cd0fb31bd98f85a1426abd1f7df7057d7684becf (diff) | |
| download | ansible-9cea8170d4eabf19d5268b6f04aead48e0ad2f8e.tar.gz ansible-9cea8170d4eabf19d5268b6f04aead48e0ad2f8e.tar.xz ansible-9cea8170d4eabf19d5268b6f04aead48e0ad2f8e.zip | |
Simplify fasclient package installation
Using package, we can merge the yum/dnf duplication, and
we do not need is_rhel, since only EL6 will have ansible_distribution_major_version
at 6.
Diffstat (limited to 'roles/fas_client/tasks')
| -rw-r--r-- | roles/fas_client/tasks/main.yml | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/roles/fas_client/tasks/main.yml b/roles/fas_client/tasks/main.yml index 8c4ab7ff0..b22c0094c 100644 --- a/roles/fas_client/tasks/main.yml +++ b/roles/fas_client/tasks/main.yml @@ -9,28 +9,18 @@ # nss_db is needed to store user/group info. # - name: install package needed for fas-client (yum) - yum: state=present name={{ item }} + package: state=present name={{ item }} with_items: - fas-clients - cronie tags: - packages - fas_client - when: ansible_distribution_major_version|int < 22 - -- name: install package needed for fas-client (dnf) - dnf: state=present name={{ item }} - with_items: - - fas-clients - - cronie - tags: - - packages - - fas_client - when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined + when: ansible_cmdline.ostree is not defined - name: install nss_db on rhel hosts only yum: state=present name=nss_db - when: is_rhel is defined and ansible_distribution_major_version|int == 6 + when: ansible_distribution_major_version|int == 6 tags: - packages - fas_client |
