From 247c1c761aa3b3b9c1c04d93607f591c9624869b Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Wed, 20 May 2020 16:14:58 -0400 Subject: [PATCH] deploy python3 versions of these but dont expect them to work --- playbooks/groups/sundries.yml | 2 +- roles/geoip-city-wsgi/app/tasks/main.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/sundries.yml b/playbooks/groups/sundries.yml index a6b9cd7256..af85525dae 100644 --- a/playbooks/groups/sundries.yml +++ b/playbooks/groups/sundries.yml @@ -24,7 +24,7 @@ - collectd/base - mod_wsgi - geoip - - geoip-city-wsgi/app + - { role: geoip-city-wsgi/app, when: ansible_distribution_major_version|int <= 7 and ansible_distribution == 'RedHat' } - role: easyfix/gather when: master_sundries_node|bool - role: regindexer/build diff --git a/roles/geoip-city-wsgi/app/tasks/main.yml b/roles/geoip-city-wsgi/app/tasks/main.yml index 9d36237b22..c06233e51e 100644 --- a/roles/geoip-city-wsgi/app/tasks/main.yml +++ b/roles/geoip-city-wsgi/app/tasks/main.yml @@ -12,6 +12,18 @@ - python2-iso3166 - python2-geoip2 state: present + when: ansible_distribution_major_version|int < 8 and ansible_distribution == 'RedHat' + +- name: install python3-paste-deploy geolite2-city python3-iso3166 python3-geoip2 + package: + name: + - python3-paste-deploy + - geolite2-city + - python3-iso3166 + - python3-geoip2 + state: present + when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat' + - name: install geoip-city-wsgi.conf file copy: >