@ -19,7 +19,7 @@
- name : populate service facts
- name : populate service facts
service_facts:
service_facts:
- name : Creates directory s
- name : Creates directorie s
file:
file:
path : "{{ item.path }}"
path : "{{ item.path }}"
state : directory
state : directory
@ -31,7 +31,7 @@
- { path : "{{ service_dir }}/conf.d" }
- { path : "{{ service_dir }}/conf.d" }
when : service not in ansible_facts.packages
when : service not in ansible_facts.packages
- name : Creates directory s for Apache
- name : Creates directorie s for Apache
file:
file:
path : "{{ item.path }}"
path : "{{ item.path }}"
state : directory
state : directory
@ -45,34 +45,11 @@
- service not in ansible_facts.packages
- service not in ansible_facts.packages
- service == "apache"
- 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
- name : Install passlib
ansible.builtin.package:
pip:
name : "{{passlib_ver}}"
name : passlib
state : present
executable : pip3
when:
state : latest
- service not in ansible_facts.packages
- ansible_facts['distribution_major_version'] != '9'
environment:
http_proxy : "{{PROXY}}"
https_proxy : "{{PROXY}}"
- name : Copying over nginx.conf
- name : Copying over nginx.conf
template : src={{item.src}} dest={{item.dest}} mode="0666" force="no"
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'
when : ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == 'CentOS'
- name : Disble SELINUX in config
- name : Disa ble SELINUX in config
template:
template:
src : /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/selinux.j2
src : /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/selinux.j2
dest : /etc/selinux/config
dest : /etc/selinux/config
@ -145,7 +122,7 @@
- '"Enforcing" in sestatus.stdout'
- '"Enforcing" in sestatus.stdout'
- name : Disble SELINUX in env
- name : Disa ble SELINUX in env
shell : setenforce 0
shell : setenforce 0
ignore_errors : yes
ignore_errors : yes
debugger : never
debugger : never