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 @@ ...@@ -34,13 +34,13 @@
- name: "install EPEL" - name: "install EPEL"
yum: yum:
name: epel-release name: epel-release
when: epel_repo when: "epel_repo | bool"
become: true become: true
- name: "install moreutils (chronic)" - name: "install moreutils (chronic)"
yum: yum:
name: "moreutils" name: "moreutils"
when: "cron_email" when: "cron_email | bool"
become: true become: true
- name: "install IUS" - name: "install IUS"
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
key: "http://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY" key: "http://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY"
state: present state: present
become: true become: true
when: ius_repo when: "ius_repo | bool"
- name: "Set timezone to Oslo" - name: "Set timezone to Oslo"
timezone: timezone:
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
user: "{{ item }}" user: "{{ item }}"
state: present state: present
with_items: "{{ cron_users }}" with_items: "{{ cron_users }}"
when: "cron_email and cron_mailto is defined" when: "cron_email | bool and cron_mailto is defined"
become: true become: true
- block: - 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