Skip to content

Commit

Permalink
step_acme_cert: try to fix CI failures (#384)
Browse files Browse the repository at this point in the history
step_acme_cert: fix CI failures
  • Loading branch information
maxhoesel authored Feb 15, 2024
1 parent ccbd27d commit 98b4e34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions roles/step_acme_cert/molecule/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@
group: root
mode: "755"
state: directory

- name: Start nginx
systemd:
name: nginx
ansible.builtin.systemd:
name: nginx.service
state: started
register: _res
retries: 5
delay: 5
until: _res is not failed

- name: Get cert via webroot
include_role:
name: step_acme_cert
Expand All @@ -71,17 +77,18 @@
owner: root
group: root
mode: "644"
notify: restart nginx
when: ansible_os_family == "Debian"
notify: restart nginx
- name: Install Nginx config [RedHat]
template:
src: ../templates/nginx.conf
dest: /etc/nginx/nginx.conf
owner: root
group: root
mode: "644"
notify: restart nginx
when: ansible_os_family == "RedHat"
notify: restart nginx

handlers:
- name: restart nginx
systemd:
Expand Down
2 changes: 1 addition & 1 deletion roles/step_acme_cert/molecule/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
uri:
url: "https://{{ ansible_fqdn }}"
register: _res
retries: 3
retries: 5
delay: 5
until: _res is not failed

0 comments on commit 98b4e34

Please sign in to comment.