Reinstall koschei-backend-stg as Fedora 27

This commit is contained in:
Mikolaj Izdebski 2017-11-30 11:08:09 +00:00
parent 6bb4ec0acf
commit 6c884c55c6
2 changed files with 14 additions and 4 deletions

View file

@ -3,8 +3,8 @@ nm: 255.255.255.0
gw: 10.5.125.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-fedora-26
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/26/Server/x86_64/os/
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-fedora-27
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/27/Server/x86_64/os/
volgroup: /dev/xenGuests
eth0_ip: 10.5.125.49

View file

@ -8,10 +8,20 @@
- packages
- yumrepos
- name: Install common packages
- name: Install common packages (Fedora >= 27)
package: name={{ item }} state=present
with_items:
- python-memcached
- python3-memcached
when: ansible_distribution_major_version|int > 26
tags:
- koschei
- packages
- name: Install common packages (not Fedora or Fedora <= 26)
package: name={{ item }} state=present
with_items:
- python-memcached
when: ansible_distribution_major_version|int < 27
tags:
- koschei
- packages