From 75e072a7a5dea5d77a1d1c3f435bbed46ee431a8 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 28 Jul 2014 20:10:12 +0000 Subject: [PATCH] Move fasClient runs to every 30min instead of every 10min. --- roles/fas_client/files/fas-client.cron | 2 +- roles/fas_client/tasks/main.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/fas_client/files/fas-client.cron b/roles/fas_client/files/fas-client.cron index 4ec50f9a8c..061ee08233 100644 --- a/roles/fas_client/files/fas-client.cron +++ b/roles/fas_client/files/fas-client.cron @@ -1 +1 @@ -*/10 * * * * root /usr/local/bin/lock-wrapper fasClient "/bin/sleep $(($RANDOM \% 180)); /usr/bin/fasClient -i | /usr/local/bin/nag-once fassync 1d 2>&1" +*/30 * * * * root /usr/local/bin/lock-wrapper fasClient "/bin/sleep $(($RANDOM \% 180)); /usr/bin/fasClient -i | /usr/local/bin/nag-once fassync 1d 2>&1" diff --git a/roles/fas_client/tasks/main.yml b/roles/fas_client/tasks/main.yml index 32917e18b1..1e41b77ff5 100644 --- a/roles/fas_client/tasks/main.yml +++ b/roles/fas_client/tasks/main.yml @@ -15,12 +15,14 @@ - cronie tags: - packages + - fas_client - name: install nss_db on rhel hosts only yum: state=installed name=nss_db when: is_rhel is defined and ansible_distribution_major_version == '6' tags: - packages + - fas_client # # setup /etc/nsswitch.conf to use nssdb @@ -29,6 +31,7 @@ copy: src=nsswitch.conf dest=/etc/nsswitch.conf owner=root mode=644 tags: - config + - fas_client # # fasClients needs a valid /etc/fas.conf. @@ -52,6 +55,7 @@ - ../templates/fas.conf.j2 tags: - config + - fas_client notify: - run fasclient @@ -68,8 +72,10 @@ copy: src=fas-client.cron dest=/etc/cron.d/fas-client owner=root mode=644 tags: - config + - fas_client - name: run fas_client only if we just installed command: fasClient -if creates=/var/db/shadow.db tags: - config + - fas_client