Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
feat: retry some flaky tasks (#6965)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Graber authored Jul 26, 2023
1 parent 420bebd commit 70c147f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions playbooks/roles/insightvm_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
stat:
path: /etc/systemd/system/ir_agent.service
register: r7_service
retries: 3
tags:
- manage_rapid7_check_agent

Expand Down
1 change: 1 addition & 0 deletions playbooks/roles/security/tasks/security-amazon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- name: "Take security updates during ansible runs"
command: "{{ item }}"
when: SECURITY_UPGRADE_ON_ANSIBLE
retries: 3
with_items:
- yum check-update --security
- yum update --security -y
1 change: 1 addition & 0 deletions playbooks/roles/security/tasks/security-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- name: Disable unattended-upgrades if Xenial (16.04)
command: "{{ item }}"
when: ansible_distribution_release == 'xenial' and not SECURITY_UNATTENDED_UPGRADES
retries: 3
with_items:
- "systemctl disable apt-daily.service"
- "systemctl disable apt-daily.timer"
Expand Down

0 comments on commit 70c147f

Please sign in to comment.