fas_client: fix template to correctly apply on pkgs02 and add people02
The ansible_hostname variable is actually the short name of the host, not the fqdn, so this conditional didn't match before. Switch it to use startswith and also add people02 as thats the other host people try and login to often after changing ssh keys. With this, pkgs02 and people02 should hopefully update ssh keys from fas every 15min and avoid manual sync requests to the team. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
6774bf6d2d
commit
c8bdc3f2ca
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{% if ansible_hostname == 'pkgs02.phx2.fedoraproject.org' %}
|
||||
{% if ansible_hostname.startswith(('pkgs02', 'people02')) %}
|
||||
*/15 * * * * root /usr/local/bin/lock-wrapper fasClient "/usr/bin/fasClient -i |& grep -vi deprecation | /usr/local/bin/nag-once fassync 1d 2>&1"
|
||||
{% else %}
|
||||
00 20 * * * root /usr/local/bin/lock-wrapper fasClient "/bin/sleep $(($RANDOM \% 3600)); /usr/bin/fasClient -i |& grep -vi deprecation | /usr/local/bin/nag-once fassync 1d 2>&1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue