From 8feabc9db594f533d298404fbe6d4da2b95e2c9a Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Sat, 30 Jul 2016 21:26:04 +0000 Subject: [PATCH] initial fas3 role, missing files/templates still, so not usable yet Signed-off-by: Ricky Elrod --- roles/fas3_server/tasks/main.yml | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 roles/fas3_server/tasks/main.yml diff --git a/roles/fas3_server/tasks/main.yml b/roles/fas3_server/tasks/main.yml new file mode 100644 index 0000000000..bd47f71166 --- /dev/null +++ b/roles/fas3_server/tasks/main.yml @@ -0,0 +1,53 @@ +--- +# Tasks to set up fas3_server + +- name: install needed packages + yum: pkg={{ item }} state=installed + with_items: + - fas3 + - httpd + - mod_wsgi + tags: + - packages + - fas3 + +- name: enable httpd_can_network_connect selinux boolean + seboolean: name={{ item }} state=yes persistent=yes + with_items: + - httpd_can_network_connect + - allow_ypbind + tags: + - config + - fas3 + +- name: setup /var/www/.python-eggs directory + file: path=/var/www/.python-eggs owner=apache group=apache mode=0700 state=directory + tags: + - config + - fas3 + +- name: install /etc/httpd/conf.d/accounts.conf file + template: > + src="fas-app.conf.j2" + dest="/etc/httpd/conf.d/accounts.conf" + owner=root + group=root + mode=0644 + notify: + - reload httpd + tags: + - config + - fas3 + +- name: install /etc/fas/production.ini file + template: > + src="production.ini" + dest="/etc/fas/production.ini" + owner=fas + group=apache + mode=0640 + notify: + - reload httpd + tags: + - config + - fas3