diff options
Diffstat (limited to 'lamp_haproxy/roles/base-apache/tasks/main.yml')
-rw-r--r-- | lamp_haproxy/roles/base-apache/tasks/main.yml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lamp_haproxy/roles/base-apache/tasks/main.yml b/lamp_haproxy/roles/base-apache/tasks/main.yml index e06a1a8..310d164 100644 --- a/lamp_haproxy/roles/base-apache/tasks/main.yml +++ b/lamp_haproxy/roles/base-apache/tasks/main.yml @@ -2,16 +2,24 @@ # This role installs httpd - name: Install http - yum: name={{ item }} state=present + yum: + name: "{{ item }}" + state: present with_items: - httpd - php - php-mysql - git - + - name: Configure SELinux to allow httpd to connect to remote database - seboolean: name=httpd_can_network_connect_db state=true persistent=yes + seboolean: + name: httpd_can_network_connect_db + state: true + persistent: yes when: sestatus.rc != 0 - name: http service state - service: name=httpd state=started enabled=yes + service: + name: httpd + state: started + enabled: yes |