Commit a5d973f8 authored by Lars Beckers's avatar Lars Beckers
Browse files

zabbix-repo/server: fix jinja spacing

parent 98e752d6
......@@ -4,7 +4,7 @@
- name: ensure apt got the key to verify the zabbix repo
apt_key:
data: "{{lookup('file', 'zabbix.gpg')}}"
data: "{{ lookup('file', 'zabbix.gpg') }}"
state: present
when: debian_version == "jessie" or debian_version == "stretch"
notify:
......@@ -19,9 +19,9 @@
state: absent
with_items:
# yamllint disable-line rule:line-length
- 'deb http://repo.zabbix.com/zabbix/{{old_zabbix_version}}/debian {{ debian_version }} main'
- 'deb http://repo.zabbix.com/zabbix/{{ old_zabbix_version }}/debian {{ debian_version }} main'
# yamllint disable-line rule:line-length
- 'deb-src http://repo.zabbix.com/zabbix/{{old_zabbix_version}}/debian {{ debian_version }} main'
- 'deb-src http://repo.zabbix.com/zabbix/{{ old_zabbix_version }}/debian {{ debian_version }} main'
notify:
- update apt cache
tags:
......@@ -32,12 +32,12 @@
apt_repository:
repo: "{{ item }}"
# yamllint disable-line rule:line-length
state: '{{"present" if debian_version == "jessie" or debian_version == "stretch" else "absent"}}'
state: '{{ "present" if debian_version == "jessie" or debian_version == "stretch" else "absent" }}'
with_items:
# yamllint disable-line rule:line-length
- 'deb http://repo.zabbix.com/zabbix/{{zabbix_version}}/debian {{ debian_version }} main'
- 'deb http://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian {{ debian_version }} main'
# yamllint disable-line rule:line-length
- 'deb-src http://repo.zabbix.com/zabbix/{{zabbix_version}}/debian {{debian_version }} main'
- 'deb-src http://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian {{ debian_version }} main'
notify:
- update apt cache
tags:
......@@ -46,7 +46,7 @@
- name: ensure chr's key is present
apt_key:
data: "{{lookup('file', 'chr.gpg')}}"
data: "{{ lookup('file', 'chr.gpg') }}"
state: present
notify:
- update apt cache
......
......@@ -195,10 +195,10 @@
- name: let's clean the history partition up once per month
cron:
name: "clean zabbix-db {{item.table}} partition"
name: "clean zabbix-db {{ item.table }} partition"
special_time: monthly
# yamllint disable-line rule:line-length
job: "/usr/local/bin/partition-cleanup.py public.{{item.table}} --months {{item.months}}"
job: "/usr/local/bin/partition-cleanup.py public.{{ item.table }} --months {{ item.months }}"
state: present
user: postgres
delegate_to: "{{ zabbix_db_host }}"
......
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