diff options
| author | Tim Flink <tflink@fedoraproject.org> | 2015-10-01 19:07:52 +0000 |
|---|---|---|
| committer | Tim Flink <tflink@fedoraproject.org> | 2015-10-01 19:07:52 +0000 |
| commit | 61ba7862bb06e9d3dfa8ca7eb54946c1c565c0ec (patch) | |
| tree | a12ee90e406d4a2fa807c9f5bb92ff879fed85e3 /roles/fas_client/tasks | |
| parent | 1cd3b30d6e388e5e336f255b908e3e7121ccbb5a (diff) | |
| download | ansible-61ba7862bb06e9d3dfa8ca7eb54946c1c565c0ec.tar.gz ansible-61ba7862bb06e9d3dfa8ca7eb54946c1c565c0ec.tar.xz ansible-61ba7862bb06e9d3dfa8ca7eb54946c1c565c0ec.zip | |
adding dnf support to fas_client role
Diffstat (limited to 'roles/fas_client/tasks')
| -rw-r--r-- | roles/fas_client/tasks/main.yml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/roles/fas_client/tasks/main.yml b/roles/fas_client/tasks/main.yml index 7b22966fd..8c4ab7ff0 100644 --- a/roles/fas_client/tasks/main.yml +++ b/roles/fas_client/tasks/main.yml @@ -8,7 +8,7 @@ # fas-clients is in the infrastructure repo. # nss_db is needed to store user/group info. # -- name: install package needed for fas-client +- name: install package needed for fas-client (yum) yum: state=present name={{ item }} with_items: - fas-clients @@ -16,6 +16,17 @@ 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 - name: install nss_db on rhel hosts only yum: state=present name=nss_db |
