simplification sur suggestion de jlecour
This commit is contained in:
parent
795bf63df1
commit
45d5619e18
|
@ -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",'<')
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue