ansible/monitoring-agent: only modify httpd access log permissions when `hosttype` is "hgweb"
authorConnor Sheehan <sheehan@mozilla.com>
Wed, 24 Apr 2019 11:04:04 -0400
changeset 6964 210ad037e03856a502d3fc6fb1ba6c6ab04f3ad2
parent 6963 bdc17e270d0b1ae7e2919b90ef81f101f38fd655
child 6965 0ec322c77f2378619209e68745fffb27d1c0bd03
push id3463
push usercosheehan@mozilla.com
push dateWed, 24 Apr 2019 15:04:18 +0000
treeherderversion-control-tools@210ad037e038 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
ansible/monitoring-agent: only modify httpd access log permissions when `hosttype` is "hgweb" hgssh doesn't install Apache, so there's no log to modify.
ansible/roles/monitoring-agent/tasks/main.yml
--- a/ansible/roles/monitoring-agent/tasks/main.yml
+++ b/ansible/roles/monitoring-agent/tasks/main.yml
@@ -15,14 +15,15 @@
     src: telegraf.conf.j2
     dest: /etc/telegraf/telegraf.conf
   notify: restart telegraf
 
 - name: fix httpd access log permissions
   file:
     path: /var/log/httpd
     mode: 0701
+  when: hosttype == 'hgweb'
 
 - name: start the Telegraf service
   service:
     name: telegraf
     state: started
     enabled: yes