Browse Source

compatibilite virtuozzo 7 pour le role update

master
LecygneNoir 6 years ago
parent
commit
fed762e0d2
3 changed files with 6 additions and 5 deletions
  1. +1
    -2
      roles/update/tasks/by_packages.yml
  2. +3
    -3
      roles/update/tasks/normal.yml
  3. +2
    -0
      roles/update/tasks/restart.yml

+ 1
- 2
roles/update/tasks/by_packages.yml View File

@ -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'

+ 3
- 3
roles/update/tasks/normal.yml View File

@ -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'

+ 2
- 0
roles/update/tasks/restart.yml View File

@ -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:

Loading…
Cancel
Save