Remove jinja2 delimiters from when

This patch removes the jinja2 delimiters from the when clause
and cleans up the name of the configuration file deployment
task.

Closes-Bug: 1735782
Change-Id: I7e1ead5d3dfc9d36b182c73631801cefefb2fbad
This commit is contained in:
Major Hayden 2017-12-01 10:14:00 -06:00
parent 118a11009b
commit 6c260baeb3
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Drop Glance Config(s)
- name: Deploy Glance configuration files
config_template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
@ -22,7 +22,7 @@
mode: "0640"
config_overrides: "{{ item.config_overrides }}"
config_type: "{{ item.config_type }}"
when: "{{ item.condition | default(True) }}"
when: item.condition | default(True)
with_items:
- src: "glance-api-paste.ini.j2"
dest: "/etc/glance/glance-api-paste.ini"