Skip to content

Commit

Permalink
Move varialbes to the right location.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jan 5, 2021
1 parent 44357bb commit ca4d3be
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -18,3 +18,9 @@ repos:
hooks:
- id: ansible-lint
pass_filenames: false

- repo: https://github.com/robertdebock/pre-commit
rev: v1.1.2
hooks:
- id: ansible_role_find_unused_variable
- id: ansible_role_find_empty_files
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Robert de Bock (robert@meinit.nl)
Copyright 2021 Robert de Bock (robert@meinit.nl)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 6 additions & 0 deletions tasks/main.yml
Expand Up @@ -26,6 +26,12 @@
- name: create revealmd service
import_role:
name: robertdebock.service
vars:
service_list:
- name: revealmd
description: Markdown presentor
start_command: "{{ revealmd_path }}/reveal-md --port {{ revealmd_port }} {{ revealmd_options | default(omit) }} {{ revealmd_presentation }}"
working_directory: "{{ revealmd_directory }}"

- name: start and enable revealmd
service:
Expand Down
6 changes: 0 additions & 6 deletions vars/main.yml
Expand Up @@ -8,9 +8,3 @@ _revealmd_path:
Ubuntu: /usr/local/bin

revealmd_path: "{{ _revealmd_path[ansible_distribution] | default(_revealmd_path[ansible_os_family] | default(_revealmd_path['default'])) }}"

service_list:
- name: revealmd
description: Markdown presentor
start_command: "{{ revealmd_path }}/reveal-md --port {{ revealmd_port }} {{ revealmd_options | default(omit) }} {{ revealmd_presentation }}"
working_directory: "{{ revealmd_directory }}"

0 comments on commit ca4d3be

Please sign in to comment.