Locking NethServer release to 6.6 for stability purposes.

This commit is contained in:
Emiliano Vavassori 2015-10-31 00:17:23 +01:00
parent 53b0a570a7
commit bb1b7d9e08
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,24 @@
---
- name: Updating package cache
shell: yum repolist
- name: Installing versionlock yum-plugin
yum:
name: yum-plugin-versionlock
state: present
- name: Updating nethserver-release to last known version for 6.6
yum:
name: nethserver-release-6.6
state: present
- name: Checking if already locked
shell: yum versionlock list | grep -q nethserver-release && echo 'Locked'
register: chk_locked_nethrelease
ignore_errors: true
changed_when: "'Locked' not in chk_locked_nethrelease.stdout"
- name: Locking nethserver-release version
shell: yum versionlock add nethserver-release
when: chk_locked_nethrelease|changed

View File

@ -3,6 +3,10 @@
- include: ssh-keygen.yml
tags: ssh
- include: lock-nethrelease.yml
sudo: yes
tags: lock-nethrelease
- include: centos_pkgs.yml
when: ansible_distribution == "CentOS" and ansible_os_family == "RedHat"
tags: centos