Skip to content

Commit 00a0575

Browse files
author
Christopher M. Neill
committed
dont drop privs
1 parent b1bf8a9 commit 00a0575

2 files changed

Lines changed: 1 addition & 17 deletions

File tree

ansible/roles/loggly-rotate/tasks/main.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,11 @@
5656
path=/var/spool/rsyslog/stat-{{ name }}
5757
state=absent
5858

59-
- name: check for current log file
60-
tags: [loggly, deploy]
61-
stat: path=/var/log/{{ name }}
62-
register: log_file
63-
64-
- name: remove old log file
65-
when: log_file.stat.exists
66-
tags: [loggly, deploy]
67-
sudo: yes
68-
file:
69-
path=/var/log/{{ name }}.log
70-
state=absent
71-
72-
# outside of ansible, upstart will write to logfile as root; this is a bandaid until we change upstart's behavior - TODO, cneill 12/16/2015
73-
# the log destination for npm is set inside the dock-init repo.
7459
- name: touch the log file
7560
tags: [loggly, deploy]
7661
sudo: yes
7762
file:
78-
path=/var/log/{{ name }}.log
63+
path=/var/log/{{ name }}-daemon.log
7964
state=touch
8065
owner=syslog
8166
group=adm

ansible/roles/loggly-rotate/templates/21-output-syslog.conf.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
$WorkDirectory /var/spool/rsyslog
2-
$PrivDropToGroup adm
32

43
# start log rotation via outchannel
54
# outchannel definition

0 commit comments

Comments
 (0)