From 8fe6c7b8a7914b185a57681df844bf32f4863cc9 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 14 Jul 2014 04:33:04 +0000 Subject: [PATCH] Cleanup the database whenever the FedOAuth playbook is ran --- roles/fedoauth/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/fedoauth/tasks/main.yml b/roles/fedoauth/tasks/main.yml index c37a3ffea4..874400e4e0 100644 --- a/roles/fedoauth/tasks/main.yml +++ b/roles/fedoauth/tasks/main.yml @@ -52,6 +52,11 @@ environment: FEDOAUTH_CONFIG: /etc/fedoauth/fedoauth.cfg +- name: Clean the database + command: /usr/bin/python2 /usr/share/fedoauth/cleanup.py + environment: + FEDOAUTH_CONFIG: /etc/fedoauth/fedoauth.cfg + - name: set sebooleans so fedoauth can talk to the db action: seboolean name=httpd_can_network_connect_db state=true