Skip to content

Commit

Permalink
Fixed bug in the path where the configuration was being written
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Suarez committed Oct 9, 2019
1 parent 3fee75a commit b39735f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Configure Papertrail managed configuration file
template:
src: papertrail_conf.yml.j2
dest: "{{ papertrail_config_file_path }}"
dest: "{{ papertrail_config_file_path }}/{{ papertrail_config_file_name }}"
owner: root
group: root
mode: 0644
Expand Down
5 changes: 5 additions & 0 deletions tasks/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
papertrail_config_file_path: "{{ __papertrail_config_file_path }}"
when: papertrail_config_file_path is not defined

- name: Set papertrail config file name
set_fact:
papertrail_config_file_name: "{{ __papertrail_config_file_name }}"
when: papertrail_config_file_name is not defined

- name: Set papertrail package name
set_fact:
papertrail_package_name: "{{ __papertrail_package_name }}"
Expand Down
3 changes: 2 additions & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
__papertrail_download_url: "https://github.com/papertrail/remote_syslog2/releases/download/v{{ papertrail_version }}"
__papertrail_config_file_path: log_files.yml
__papertrail_config_file_path: /etc
__papertrail_config_file_name: log_files.yml
__papertrail_service_name: remote_syslog

0 comments on commit b39735f

Please sign in to comment.