Browse Source

simplification sur suggestion de jlecour

master
Daniel Jakots 3 years ago
parent
commit
45d5619e18
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      HowtoAnsible.md

+ 3
- 7
HowtoAnsible.md View File

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


Loading…
Cancel
Save