summaryrefslogtreecommitdiffstats
path: root/tasks/cloud_setup_basic.yml
diff options
context:
space:
mode:
authorMiroslav Suchý <msuchy@redhat.com>2015-05-14 16:08:56 +0200
committerMiroslav Suchý <msuchy@redhat.com>2015-05-14 16:08:56 +0200
commitb78d1f277e0dd9c8b39f2ed3aba0abd8b679db8f (patch)
tree5a0f5393a1a4fd4d78b03553724ea9fdc125f127 /tasks/cloud_setup_basic.yml
parentf303f64dfee0e3ade6c11cd23e3a6f1b1a923fc1 (diff)
downloadansible-b78d1f277e0dd9c8b39f2ed3aba0abd8b679db8f.tar.gz
ansible-b78d1f277e0dd9c8b39f2ed3aba0abd8b679db8f.tar.xz
ansible-b78d1f277e0dd9c8b39f2ed3aba0abd8b679db8f.zip
change the condition so it works even when the variable is not defined
Diffstat (limited to 'tasks/cloud_setup_basic.yml')
-rw-r--r--tasks/cloud_setup_basic.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/cloud_setup_basic.yml b/tasks/cloud_setup_basic.yml
index af3e07ec1..6404f5128 100644
--- a/tasks/cloud_setup_basic.yml
+++ b/tasks/cloud_setup_basic.yml
@@ -23,7 +23,7 @@
- name: enable the service
action: service name=ntpd state=running enabled=true
- when: not ansible_cmdline.ostree
+ when: ansible_cmdline.ostree is not defined
#- name: edit hostname to be instance name - prefix hostbase var if it exists
# action: shell hostname {{ hostbase }}`curl -s http://169.254.169.254/latest/meta-data/instance-id`
@@ -63,7 +63,7 @@
- name: update all
command: dnf -y update creates=/etc/sysconfig/global-update-applied
register: updated
- when: ansible_distribution_major_version > '21' and not ansible_cmdline.ostree
+ when: ansible_distribution_major_version > '21' and ansible_cmdline.ostree is not defined
tags:
- packages