diff options
| author | Ricky Elrod <codeblock@fedoraproject.org> | 2016-07-30 21:26:04 +0000 |
|---|---|---|
| committer | Ricky Elrod <codeblock@fedoraproject.org> | 2016-07-30 21:26:13 +0000 |
| commit | 8feabc9db594f533d298404fbe6d4da2b95e2c9a (patch) | |
| tree | b0ae39e616320fa23f3da310007e01bb78a92a43 /roles/fas3_server | |
| parent | 1e6d4d5fc4ae9d51da1a080469739f7217e6e271 (diff) | |
| download | ansible-8feabc9db594f533d298404fbe6d4da2b95e2c9a.tar.gz ansible-8feabc9db594f533d298404fbe6d4da2b95e2c9a.tar.xz ansible-8feabc9db594f533d298404fbe6d4da2b95e2c9a.zip | |
initial fas3 role, missing files/templates still, so not usable yet
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
Diffstat (limited to 'roles/fas3_server')
| -rw-r--r-- | roles/fas3_server/tasks/main.yml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/roles/fas3_server/tasks/main.yml b/roles/fas3_server/tasks/main.yml new file mode 100644 index 000000000..bd47f7116 --- /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 |
