Refactor Ansible tasks and templates for improved consistency and clarity
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: (cron.yml) Set env entries in user crontabs
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
name: "{{ item.name }}"
|
||||
env: "yes"
|
||||
user: '{{ item.user | default("root") }}'
|
||||
@@ -14,7 +14,7 @@
|
||||
- user_crontab
|
||||
|
||||
- name: (cron.yml) Set special time entries in user crontabs
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
name: "{{ item.name }}"
|
||||
special_time: "{{ item.special_time }}"
|
||||
user: '{{ item.user | default("root") }}'
|
||||
@@ -28,7 +28,7 @@
|
||||
- user_crontab
|
||||
|
||||
- name: (cron.yml) Set normal entries in user crontabs
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
name: "{{ item.name }}"
|
||||
minute: "{{ item.minute | default(omit) }}"
|
||||
hour: "{{ item.hour | default(omit) }}"
|
||||
|
||||
Reference in New Issue
Block a user