aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Cholewiński <harry666t@gmail.com>2015-12-28 20:27:23 +0100
committerKamil Cholewiński <harry666t@gmail.com>2015-12-28 20:27:23 +0100
commit657d6fa22eee52cf32b99a5eb2fa3937e70ab0ad (patch)
tree442cb7a7586b1696071bea77a81705faa50d7e7c
parent5ed5c85ad2443770022c75328c0852d10845e34e (diff)
downloadcookbook-657d6fa22eee52cf32b99a5eb2fa3937e70ab0ad.zip
cookbook-657d6fa22eee52cf32b99a5eb2fa3937e70ab0ad.tar.gz
cookbook-657d6fa22eee52cf32b99a5eb2fa3937e70ab0ad.tar.bz2
Can now remove vars from rc.conf.local
-rw-r--r--roles/config/tasks/rc_local.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/config/tasks/rc_local.yml b/roles/config/tasks/rc_local.yml
index 9947416..cfcd450 100644
--- a/roles/config/tasks/rc_local.yml
+++ b/roles/config/tasks/rc_local.yml
@@ -17,5 +17,6 @@
dest: /etc/rc.conf.local
line: "{{ item.key }}={{ item.value }}"
regexp: "^{{ item.key }} *="
+ state: "{{ 'present' if item.value != False else 'absent' }}"
with_dict: local.rc_conf
tags: config