Commit 96c8e585 authored by Ahl.Nilsen's avatar Ahl.Nilsen
Browse files

legg til bool filter i when klausul

parent 0f678747
......@@ -34,13 +34,13 @@
- name: "install EPEL"
yum:
name: epel-release
when: epel_repo
when: "epel_repo | bool"
become: true
- name: "install moreutils (chronic)"
yum:
name: "moreutils"
when: "cron_email"
when: "cron_email | bool"
become: true
- name: "install IUS"
......@@ -53,7 +53,7 @@
key: "http://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY"
state: present
become: true
when: ius_repo
when: "ius_repo | bool"
- name: "Set timezone to Oslo"
timezone:
......@@ -68,7 +68,7 @@
user: "{{ item }}"
state: present
with_items: "{{ cron_users }}"
when: "cron_email and cron_mailto is defined"
when: "cron_email | bool and cron_mailto is defined"
become: true
- block:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment