ansible-roles/evolinux-base/tasks/utils.yml
Mathieu Trossevin 7c632352a0
Replace the include module with include_tasks or import_tasks
The behaviour of the `include` module is badly defined (it try to choose
between statically importing the tasks and dynamically including them)
and can cause problems depending on any number of constraints (mostly if
it choose the wrong behaviour).

Replace it with the `import_tasks` (always statically import tasks) unless
the `include` is in a loop in which case we replace it with
`include_tasks` (always dynamically include tasks).
2023-01-03 14:43:42 +01:00

52 lines
1,021 B
YAML

---
- import_role:
name: evolix/remount-usr
- import_tasks:
file: dump-server-state.yml
- name: "/sbin/deny script is present"
copy:
src: deny.sh
dest: /sbin/deny
mode: "0700"
owner: root
group: root
force: no
- name: update-evobackup-canary script is present
copy:
src: update-evobackup-canary
dest: /usr/local/bin/update-evobackup-canary
force: True
owner: root
group: root
mode: "0755"
# TODO: delete when this has been run once on all our servers
- name: update-evobackup-canary is removed from sbin
file:
path: /usr/local/sbin/update-evobackup-canary
state: absent
# - name: dir-check script is present
# copy:
# src: "dir-check.sh"
# dest: /usr/local/bin/dir-check
# force: True
# owner: root
# group: root
# mode: "0755"
- name: Deploy htop configuration
copy:
src: htoprc
dest: /etc/htoprc
mode: "0644"
- name: Deploy top configuration file
file:
path: /etc/topdefaultrc
state: absent