@ -19,7 +19,7 @@
- name : populate service facts
service_facts:
- name : Creates director y s
- name : Creates director ie s
file:
path : "{{ item.path }}"
state : directory
@ -31,7 +31,7 @@
- { path : "{{ service_dir }}/conf.d" }
when : service not in ansible_facts.packages
- name : Creates director y s for Apache
- name : Creates director ie s for Apache
file:
path : "{{ item.path }}"
state : directory
@ -45,34 +45,11 @@
- service not in ansible_facts.packages
- service == "apache"
- name : Set passlib version
set_fact:
passlib_ver : "python3-passlib"
when : ansible_facts['distribution_major_version'] == '8' or (ansible_facts['os_family'] == 'Debian' or ansible_facts['os_family'] == 'Ubuntu')
ignore_errors : True
- name : Set passlib version
set_fact:
passlib_ver : "python-passlib"
when : ansible_facts['distribution_major_version'] == '7'
ignore_errors : True
- name : Set passlib version
set_fact:
passlib_ver : "passlib"
when : ansible_facts['distribution_major_version'] == '9'
ignore_errors : True
- name : Install passlib
ansible.builtin.package:
name : "{{passlib_ver}}"
state : present
when:
- service not in ansible_facts.packages
- ansible_facts['distribution_major_version'] != '9'
environment:
http_proxy : "{{PROXY}}"
https_proxy : "{{PROXY}}"
pip:
name : passlib
executable : pip3
state : latest
- name : Copying over nginx.conf
template : src={{item.src}} dest={{item.dest}} mode="0666" force="no"
@ -135,7 +112,7 @@
when : ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == 'CentOS'
- name : Dis ble SELINUX in config
- name : Dis a ble SELINUX in config
template:
src : /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/selinux.j2
dest : /etc/selinux/config
@ -145,7 +122,7 @@
- '"Enforcing" in sestatus.stdout'
- name : Dis ble SELINUX in env
- name : Dis a ble SELINUX in env
shell : setenforce 0
ignore_errors : yes
debugger : never