Skip to content
Snippets Groups Projects
Commit 46d826b9 authored by Théo - Le Filament's avatar Théo - Le Filament
Browse files

fix: collect Docker facts only for servers in maintenance

parent a60e47bd
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,7 @@
owner: root
group: root
mode: '0700'
when: inventory_hostname in groups.maintenance_contract
- name: Add cron job to check Docker versions every day
ansible.builtin.cron:
......@@ -121,6 +122,7 @@
minute: "1"
hour: "2"
job: /root/collect_docker_facts.sh
when: inventory_hostname in groups.maintenance_contract
# Flush handlers in order to be able to restart docker daemon with new config and retrieve vars
- name: Flush handlers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment