Playbook #5

/home/zuul/src/opendev.org/opendev/system-config/playbooks/letsencrypt.yaml

Report Status CLI Date Duration Controller User Versions Hosts Plays Tasks Results Files Records
18 Jul 2025 20:47:32 +0000 00:00:24.78 bridge99.opendev.org root Ansible 2.15.13 ara 1.7.2 (client), 1.7.2 (server) Python 3.10.12 2 5 47 47 33 0

File: /home/zuul/src/opendev.org/opendev/system-config/playbooks/roles/install-certcheck/tasks/main.yaml

- name: Ensure dependencies
  package:
    name:
      - openssl
      - bsd-mailx

- name: Ensure certcheck user
  user:
    name: certcheck
    comment: User for SSL validation

- name: Ensure certcheck config directory
  file:
    state: directory
    path: '{{ cert_check_domain_list | dirname }}'
    owner: certcheck
    group: certcheck
    mode: 0755

- name: Pull latest ssl-cert-check from git
  git:
    repo: 'https://github.com/Matty9191/ssl-cert-check'
    dest: /opt/ssl-cert-check
    recursive: false

- name: Install cron job
  cron:
    user: certcheck
    name: 'Run certcheck'
    state: present
    job: "/opt/ssl-cert-check/ssl-cert-check -a -q -f {{ cert_check_domain_list }} -x {{ cert_check_days }} -e {{ cert_check_email }}"
    hour: 12
    minute: 04