- name: Ensure cron log path
  file:
    state: directory
    path: /var/www/html/cron-logs/cideploy
    mode: 0755
    owner: cideploy
    group: www-data

- name: Cron ci deploy
  cron:
    name: "deploy CI"
    minute: "*/15"
    user: "{{ ansible_runner_user }}"
    job: "/usr/local/bin/ansible-runner cideploy"

- name: Download SeedCI from github.ibm.com
  become: yes
  become_user: cideploy
  git:
    repo: git@github.ibm.com:OpenStackInnovation/SeedCI
    dest: "{{ ansible_root }}"
    update: true

- name: Ensure cron log path
  file:
    state: directory
    path: /var/www/html/cron-logs/cideploy
    mode: 0755
    owner: cideploy
    group: www-data

- name: Cron ci deploy
  cron:
    name: "deploy CI"
    minute: "*/15"
    user: "{{ ansible_runner_user }}"
    job: "/usr/local/bin/ansible-runner cideploy -e @/home/{{ ansible_runner_user }}/secrets.yml"

- name: Download SeedCI from github.ibm.com
  become: yes
  become_user: cideploy
  git:
    repo: git@github.ibm.com:OpenStackInnovation/SeedCI
    dest: "{{ ansible_root }}"
    update: true

Add a secrets file to cronjob
Add a secrets file to cronjob

The cideploy script needs a secrets file. Let's put that in the deploy
user's home dir for now as it doesn't make sense to be owned by root.
This file exists on the bastion already.
