diff --git a/HowtoAnsible.md b/HowtoAnsible.md index 48ccc3a3..e226056b 100644 --- a/HowtoAnsible.md +++ b/HowtoAnsible.md @@ -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",'<') ~~~