typo
This commit is contained in:
@@ -85,18 +85,18 @@ ansible -o all -m lineinfile -a 'path=/etc/vimrc regex="^\"set list listchars
|
||||
## Planifier l'exécution de la tâche "_Exécuter des scripts à distance avec command_" toutes les semaines le dimanche soir avec cron
|
||||
|
||||
```bash
|
||||
ansible -o -m cron -a 'name="update starship" cron_file="starship" hour="12" minute="01" weekday="sun" job="sh /tmp/install.sh -y" user="root'
|
||||
ansible all -o -m cron -a 'name="update starship" cron_file="starship" hour="12" minute="01" weekday="sun" job="sh /tmp/install.sh -y" user="root"'
|
||||
```
|
||||
|
||||
```bash
|
||||
# avec distribution horaire aléatoire ⚠️ principe d'indempotence non respecté
|
||||
ansible -o -m cron -a 'name="update starship" cron_file="starship" hour="12" minute="{{ 59 | random() }}" weekday="sun" job="sh /tmp/install.sh -y" user="root"'
|
||||
ansible all -o -m cron -a 'name="update starship" cron_file="starship" hour="12" minute="{{ 59 | random() }}" weekday="sun" job="sh /tmp/install.sh -y" user="root"'
|
||||
```
|
||||
|
||||
|
||||
```bash
|
||||
# avec distribution horaire aléatoire principe d'indempotence respecté
|
||||
ansible -o -m cron -a 'name="update starship" cron_file="starship" hour="12" minute="{{ 59 | random(seed=inventory_hostname) }}" weekday="sun" job="sh /tmp/install.sh -y" user="root"'
|
||||
ansible all -o -m cron -a 'name="update starship" cron_file="starship" hour="12" minute="{{ 59 | random(seed=inventory_hostname) }}" weekday="sun" job="sh /tmp/install.sh -y" user="root"'
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user