18
0
Fork 0

simplification sur suggestion de jlecour

This commit is contained in:
Daniel Jakots 2018-02-15 17:27:09 +01:00
parent 795bf63df1
commit 45d5619e18
1 changed files with 3 additions and 7 deletions

View File

@ -1229,21 +1229,17 @@ sur lequelle on exécute la tâche, on peut utiliser
Un cas concret : Un cas concret :
~~~ ~~~{.yaml}
- name: Install monitoring-plugins on OpenBSD 5.6 and later - name: Install monitoring-plugins on OpenBSD 5.6 and later
openbsd_pkg: openbsd_pkg:
name: "{{ item }}" name: monitoring-plugins
state: present state: present
with_items:
- monitoring-plugins
when: ansible_distribution_version | version_compare("5.6",'>=') when: ansible_distribution_version | version_compare("5.6",'>=')
- name: Install nagios-plugins on OpenBSD before 5.6 - name: Install nagios-plugins on OpenBSD before 5.6
openbsd_pkg: openbsd_pkg:
name: "{{ item }}" name: nagios-plugins
state: present state: present
with_items:
- nagios-plugins
when: ansible_distribution_version | version_compare("5.6",'<') when: ansible_distribution_version | version_compare("5.6",'<')
~~~ ~~~