Skip to content

Commit

Permalink
Debian config location
Browse files Browse the repository at this point in the history
  • Loading branch information
Respheal committed Sep 9, 2020
1 parent 8d4d1bb commit b7a91b9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# defaults/main.yml

monit_config_dir: "/etc/monit.d/"
8 changes: 8 additions & 0 deletions tasks/facts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# tasks/facts.yml

- name: Include os_family vars
include_vars: "{{ ansible_os_family }}.yml"
vars:
targets:
- Debian
when: ansible_os_family in targets
5 changes: 4 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# tasks/main.yml

- name: Include facts
include: facts.yml

- name: Install epel-release packages
package:
name: epel-release
Expand All @@ -20,7 +23,7 @@
- name: Install Configs
template:
src: httpd
dest: /etc/monit.d/httpd
dest: "{{monit_config_dir}}/httpd"
owner: root
group: root
mode: "0644"
Expand Down
3 changes: 3 additions & 0 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# vars/Debian.yml

monit_config_dir: "/etc/monit/conf.d/"

0 comments on commit b7a91b9

Please sign in to comment.