---
- apt:
    name: "{{ item }}"
    update_cache: true
  with_items:
    - python3-requests
    - python3-dateutil

- name: copy lxd-kill-old script
  template:
    src: usr/local/bin/lxd-kill-old.py.j2
    dest: /usr/local/bin/lxd-kill-old
    owner: root
    group: root
    mode: 0700
  tags:
    - lxd

- name: copy report-container-info-to-influxdb script
  template:
    src: usr/local/bin/report-container-info-to-influxdb.py.j2
    dest: /usr/local/bin/report-container-info-to-influxdb
    owner: root
    group: root
    mode: 0700
  tags:
    - lxd

- name: set MAILTO to nothing in crontab
  cron:
    name: MAILTO
    minute: MAILTO=""
    hour: ""
    day: ""
    month: ""
    weekday: ""
    job: ""

- name: periodically kill old containers
  cron:
    name: "kill too-old containers"
    minute: "*/5"
    job: "/usr/local/bin/lxd-kill-old kill"
  tags:
    - lxd

- name:   report container info to influxdb
  cron:
    name: "report-container-info-to-influxdb"
    minute: "*/5"
    job: "/usr/local/bin/report-container-info-to-influxdb"
  tags:
    - lxd




---
- apt:
    name: "{{ item }}"
    update_cache: true
  with_items:
    - python3-requests
    - python3-dateutil

- name: copy lxd-kill-old script
  template:
    src: usr/local/bin/lxd-kill-old.py.j2
    dest: /usr/local/bin/lxd-kill-old
    owner: root
    group: root
    mode: 0700
  tags:
    - lxd

- name: copy report-container-info-to-influxdb script
  template:
    src: usr/local/bin/report-container-info-to-influxdb.py.j2
    dest: /usr/local/bin/report-container-info-to-influxdb
    owner: root
    group: root
    mode: 0700
  tags:
    - lxd

- name: periodically kill old containers
  cron:
    name: "kill too-old containers"
    minute: "*/5"
    job: "/usr/local/bin/lxd-kill-old kill"
  tags:
    - lxd

- name: report container info to influxdb
  cron:
    name: "report-container-info-to-influxdb"
    minute: "*/5"
    job: "/usr/local/bin/report-container-info-to-influxdb"
  tags:
    - lxd

Fix spacing and indentation in task name
Fix spacing and indentation in task name
