Jérémy Lecour
b2e22413bc
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2706|22|2684|5|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/11//ansiblelint">Evolix » ansible-roles » unstable #11</a>
gitea/ansible-roles/pipeline/head This commit looks good
26 lines
736 B
YAML
26 lines
736 B
YAML
---
|
|
|
|
- name: "Add begin marker if missing"
|
|
ansible.builtin.lineinfile:
|
|
path: "/etc/cron.d/autosysadmin"
|
|
line: "# BEGIN ANSIBLE MANAGED SECTION FOR AUTOSYSADMIN"
|
|
insertbefore: BOF
|
|
create: yes
|
|
|
|
- name: "Add end marker if missing"
|
|
ansible.builtin.lineinfile:
|
|
path: "/etc/cron.d/autosysadmin"
|
|
line: "# END ANSIBLE MANAGED SECTION FOR AUTOSYSADMIN"
|
|
insertbefore: "EOF"
|
|
create: yes
|
|
|
|
- name: "Create config if missing"
|
|
ansible.builtin.blockinfile:
|
|
path: "/etc/cron.d/autosysadmin"
|
|
marker: "# {mark} ANSIBLE MANAGED SECTION FOR AUTOSYSADMIN"
|
|
block: "{{ lookup('ansible.builtin.template', '../templates/autosysadmin.cron.j2') }}"
|
|
owner: root
|
|
group: root
|
|
mode: "0750"
|
|
create: yes
|