30bd72614d
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2683|3|2680|2|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/453//ansiblelint">Evolix » ansible-roles » unstable #453</a>
gitea/ansible-roles/pipeline/head This commit looks good
74 lines
1.7 KiB
YAML
74 lines
1.7 KiB
YAML
---
|
|
|
|
- ansible.builtin.include_role:
|
|
name: evolix/remount-usr
|
|
|
|
- name: Scripts dir is present
|
|
ansible.builtin.file:
|
|
path: "/usr/share/scripts"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0700"
|
|
|
|
- name: Copy listupgrade script
|
|
ansible.builtin.copy:
|
|
src: listupgrade.sh
|
|
dest: "/usr/share/scripts/listupgrade.sh"
|
|
mode: "0700"
|
|
owner: root
|
|
group: root
|
|
force: true
|
|
|
|
- name: Create /etc/evolinux
|
|
ansible.builtin.file:
|
|
path: /etc/evolinux
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0700"
|
|
|
|
- name: Copy listupgrade config
|
|
ansible.builtin.template:
|
|
src: listupgrade.cnf.j2
|
|
dest: /etc/evolinux/listupgrade.cnf
|
|
mode: "0600"
|
|
owner: root
|
|
group: root
|
|
force: false
|
|
|
|
- name: Cron.d is present
|
|
ansible.builtin.file:
|
|
path: "/etc/cron.d"
|
|
state: directory
|
|
mode: "0755"
|
|
owner: root
|
|
group: root
|
|
|
|
- name: Remove old lisupgrade typo
|
|
ansible.builtin.cron:
|
|
name: "lisupgrade.sh"
|
|
cron_file: "listupgrade"
|
|
state: absent
|
|
|
|
- name: Enable listupgrade cron
|
|
ansible.builtin.cron:
|
|
name: "listupgrade.sh"
|
|
cron_file: "listupgrade"
|
|
user: root
|
|
job: "/usr/share/scripts/listupgrade.sh --cron{{ listupgrade_cron_force | bool | ternary(' --force','') }}"
|
|
minute: "{{ listupgrade_cron_minute }}"
|
|
hour: "{{ listupgrade_cron_hour }}"
|
|
weekday: "{{ listupgrade_cron_weekday }}"
|
|
day: "{{ listupgrade_cron_day }}"
|
|
month: "{{ listupgrade_cron_month }}"
|
|
state: "{{ listupgrade_cron_enabled | bool | ternary('present','absent') }}"
|
|
|
|
- name: old-kernel-autoremoval script is present
|
|
ansible.builtin.copy:
|
|
src: old-kernel-autoremoval.sh
|
|
dest: /usr/share/scripts/old-kernel-autoremoval.sh
|
|
mode: "0755"
|
|
owner: root
|
|
group: root
|