Skip to content

Commit

Permalink
add pre/post tasks, add system dependence
Browse files Browse the repository at this point in the history
  • Loading branch information
rdemachkovych committed Jun 27, 2017
1 parent e7edf3a commit c8f043b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---
- name: Gather variables for each operating system
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml"
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
- "{{ ansible_distribution | lower }}.yml"
- "{{ ansible_os_family | lower }}.yml"
tags:
- always

- name: Ensure certbot directories exists
file:
dest: "{{ item }}"
Expand Down Expand Up @@ -45,7 +56,7 @@

- name: Ensure cron is installed
package:
name: cron
name: "{{ cron_packages }}"
state: installed
when: letsencrypt_autorenew

Expand Down
3 changes: 3 additions & 0 deletions vars/redhat-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
cron_packages:
- cronie
3 changes: 3 additions & 0 deletions vars/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
cron_packages:
- cron

0 comments on commit c8f043b

Please sign in to comment.