Skip to content

Commit

Permalink
Merge pull request redhat-cop#36 from kedark3/fixes
Browse files Browse the repository at this point in the history
Fixing vars for hosts role to omit if not present, throws error otherwise
  • Loading branch information
sean-m-sullivan authored Jun 23, 2020
2 parents 5253347 + bb4ba15 commit 2f20fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/hosts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
description: "{{ item.description | default('created via Ansible Playbook') }}"
inventory: "{{ item.inventory }}"
state: "{{ item.state | default(tower_state | default('present')) }}"
variables: "{{ item.variables | d('') }}"
variables: "{{ item.variables | default(omit) }}"
tower_host: "{{ tower_hostname }}"
tower_username: "{{ tower_username | default('admin') }}"
tower_password: "{{ tower_password }}"
Expand Down

0 comments on commit 2f20fc3

Please sign in to comment.