From fed762e0d2b9c912576f88adafa4232467e957c1 Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sat, 18 Nov 2017 21:34:30 +0100 Subject: [PATCH] compatibilite virtuozzo 7 pour le role update --- roles/update/tasks/by_packages.yml | 3 +-- roles/update/tasks/normal.yml | 6 +++--- roles/update/tasks/restart.yml | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/roles/update/tasks/by_packages.yml b/roles/update/tasks/by_packages.yml index c383f4a..58a448d 100644 --- a/roles/update/tasks/by_packages.yml +++ b/roles/update/tasks/by_packages.yml @@ -11,5 +11,4 @@ tags: packages yum: name={{item}} state=latest update_cache=yes with_items: yum_packages_to_update - when: ansible_distribution == 'CentOS' or ansible_distribution == 'CloudLinux' - + when: ansible_distribution == 'CentOS' or ansible_distribution == 'CloudLinux' or ansible_distribution == 'Virtuozzo' diff --git a/roles/update/tasks/normal.yml b/roles/update/tasks/normal.yml index af49cbb..aa30747 100644 --- a/roles/update/tasks/normal.yml +++ b/roles/update/tasks/normal.yml @@ -1,10 +1,10 @@ --- - name: check LTS repo for squeeze - tags: + tags: - update - normal apt_repository: repo='deb http://http.debian.net/debian/ squeeze-lts main' state=present - when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '6' + when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '6' - name: apt-get update for my Monitoring @@ -27,4 +27,4 @@ - name: yum update tags: normal yum: name=* state=latest - when: ansible_distribution == 'CentOS' or ansible_distribution == 'CloudLinux' + when: ansible_distribution == 'CentOS' or ansible_distribution == 'CloudLinux' or ansible_distribution == 'Virtuozzo' diff --git a/roles/update/tasks/restart.yml b/roles/update/tasks/restart.yml index f9d1345..a59544d 100644 --- a/roles/update/tasks/restart.yml +++ b/roles/update/tasks/restart.yml @@ -11,9 +11,11 @@ with_items: - wrapper.sh - ignore + when: ansible_distribution == 'Debian' - name: Execute Wrapper tags: restart shell: /bin/bash -x /tmp/wrapper.sh + when: ansible_distribution == 'Debian' #vim: set textwidth=0 ft=yaml ts=2 sw=2 expandtab: