From b51cfe827e1eb8866144a0e8b32d70763607e51f Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 29 Jul 2017 18:14:07 +0000 Subject: [PATCH] adjust communityblog playbook some --- .../communityblog.fedorainfracloud.org.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/playbooks/hosts/communityblog.fedorainfracloud.org.yml b/playbooks/hosts/communityblog.fedorainfracloud.org.yml index 9274c3f218..2de16115db 100644 --- a/playbooks/hosts/communityblog.fedorainfracloud.org.yml +++ b/playbooks/hosts/communityblog.fedorainfracloud.org.yml @@ -42,3 +42,31 @@ - php-mbstring - wget - unzip + - postfix + - wordpress + + - name: enable httpd service + service: name=httpd enabled=yes state=started + + - name: configure postfix for ipv4 only + raw: postconf -e inet_protocols=ipv4 + + - name: enable local postfix service + service: name=postfix enabled=yes state=started + + roles: + - nagios_client + - mariadb_server + + post_tasks: + - name: create databaseuser + mysql_user: name=commbloguser + host=localhost + state=present + password="{{ communityblog_mariadb_password }}" + priv="commbloguser.*:ALL" + + - name: Wordpress cron + cron: name="Wordpress cron" + minute="*/10" + job="curl http://localhost:8008/wp-cron.php >/dev/null"