From d77e19fd137fc4e0dd55f992e8201ee48c4f2ce6 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Sun, 16 Aug 2015 01:06:54 +0000 Subject: [PATCH] installing packages and selinux context --- .../communityblog.fedorainfracloud.org.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/playbooks/hosts/communityblog.fedorainfracloud.org.yml b/playbooks/hosts/communityblog.fedorainfracloud.org.yml index 1ee595851b..4107599885 100644 --- a/playbooks/hosts/communityblog.fedorainfracloud.org.yml +++ b/playbooks/hosts/communityblog.fedorainfracloud.org.yml @@ -24,3 +24,20 @@ - include: "{{ tasks }}/cloud_setup_basic.yml" - name: set hostname (required by some services, at least postfix need it) shell: "hostname {{inventory_hostname}}" + +- tasks: + - name: add packages + yum: state=present name={{ item }} + with_items: + - httpd + - php + - php-mysql + - mariadb-server + - mariadb + - mod_ssl + - php-mcrypt + + - name: set the SELinux policy for the Wordpress web dir + command: semanage fcontext -a -t httpd_sys_content_t "/var/www/html/(.*)" + when: webcontext.stdout.find('httpd_sys_content_t') == -1 +