ansible-roles/evolinux-base/tasks/utils.yml

43 lines
950 B
YAML
Raw Normal View History

---
- ansible.builtin.include_role:
2021-10-22 11:56:43 +02:00
name: evolix/remount-usr
- ansible.builtin.include_tasks:
file: dump-server-state.yml
- name: "/sbin/deny script is present"
2023-03-18 18:35:54 +01:00
ansible.builtin.copy:
src: deny.sh
dest: /sbin/deny
mode: "0700"
owner: root
group: root
force: no
- name: update-evobackup-canary script is present
2023-03-18 18:35:54 +01:00
ansible.builtin.copy:
src: update-evobackup-canary
dest: /usr/local/bin/update-evobackup-canary
force: True
owner: root
group: root
2022-06-01 17:23:56 +02:00
mode: "0755"
# TODO: delete when this has been run once on all our servers
- name: update-evobackup-canary is removed from sbin
2023-03-18 18:35:54 +01:00
ansible.builtin.file:
path: /usr/local/sbin/update-evobackup-canary
2022-06-01 17:23:56 +02:00
state: absent
- name: Deploy htop configuration
2023-03-18 18:35:54 +01:00
ansible.builtin.copy:
src: htoprc
dest: /etc/htoprc
mode: "0644"
- name: Deploy top configuration file
2023-03-18 18:35:54 +01:00
ansible.builtin.file:
path: /etc/topdefaultrc
state: absent