Skip to content

Commit

Permalink
Merge pull request #3 from idealista/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
dortegau authored Jan 22, 2019
2 parents 4aee154 + b91e053 commit 4029b94
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased](https://github.com/idealista/rsyslog_role/tree/develop)

## [1.1.0](https://github.com/idealista/rsyslog_role/tree/1.1.0)
### Added
- *[#1](https://github.com/idealista/rsyslog_role/issues/1) Adding variables to enable/disable rsyslog service in defaults/main.yml* @dortegau

## [1.0.0](https://github.com/idealista/rsyslog_role/tree/1.0.0)
### Added
- *First version* @dortegau
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ rsyslog_version: 8.24.0-1
rsyslog_required_libs: []

## Service options
# start on boot
rsyslog_service_enabled: true
# current state: started, stopped
rsyslog_service_state: started

# Owner
rsyslog_user: rsyslog
Expand Down
5 changes: 5 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@
import_tasks: config.yml
tags:
- rsyslog-config

- name: RSYSLOG | Service
import_tasks: service.yml
tags:
- rsyslog-service
8 changes: 8 additions & 0 deletions tasks/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---

- name: RSYSLOG | Configuring service
systemd:
name: rsyslog
state: "{{ rsyslog_service_state }}"
enabled: "{{ rsyslog_service_enabled }}"
daemon_reload: true

0 comments on commit 4029b94

Please sign in to comment.