From 4a5cdf3fae8733eb3f6c3a48ad88045f760952c1 Mon Sep 17 00:00:00 2001 From: Chaoyi Zha Date: Fri, 12 Jun 2015 19:07:47 +0000 Subject: [PATCH] Add ansible local name/cat definitions --- roles/mote/tasks/main.yml | 12 ++++++++++++ roles/mote/templates/name_mappings.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/roles/mote/tasks/main.yml b/roles/mote/tasks/main.yml index bdcd7a3ec1..9518be815b 100644 --- a/roles/mote/tasks/main.yml +++ b/roles/mote/tasks/main.yml @@ -16,6 +16,8 @@ - { file: config.py, location: /etc/mote } - { file: mote.conf, location: /etc/httpd/conf.d } - { file: mote.wsgi, location: /usr/share/mote } + - { file: category_mappings.json, location: /usr/share/mote } + - { file: name_mappings.json, location: /usr/share/mote } tags: - config notify: @@ -43,3 +45,13 @@ file: > dest=/usr/share/mote/mote.wsgi setype=httpd_sys_content_t + +- name: apply selinux type to the name mappings file + file: > + dest=/usr/share/mote/name_mappings.json + setype=httpd_sys_content_t + +- name: apply selinux type to the category mappings file + file: > + dest=/usr/share/mote/category_mappings.json + setype=httpd_sys_content_t diff --git a/roles/mote/templates/name_mappings.json b/roles/mote/templates/name_mappings.json index 4b36bdd0ac..a686ef81f8 100644 --- a/roles/mote/templates/name_mappings.json +++ b/roles/mote/templates/name_mappings.json @@ -1,7 +1,7 @@ { "famna": { "friendly-name": "Fedora North American Ambassadors", - "aliases": [""], + "aliases": [""] }, "infrastructure": { "friendly-name": "Fedora Infrastructure Team",