Use snake_case for all yml files
This commit is contained in:
parent
46b2b89e5d
commit
07d5ad3292
@ -1,30 +1,30 @@
|
|||||||
- name: "systemd-mail : systemd mail root script"
|
- name: "systemd_mail : systemd mail root script"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./systemd-mail/system/systemd-mail-systemctl-status.j2"
|
src: "./systemd_mail/system/systemd-mail-systemctl-status.j2"
|
||||||
dest: "/usr/local/sbin/systemd-mail-systemctl-status"
|
dest: "/usr/local/sbin/systemd-mail-systemctl-status"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "systemd-mail : systemd mail user script"
|
- name: "systemd_mail : systemd mail user script"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./systemd-mail/user/systemd-mail-systemctl-status.j2"
|
src: "./systemd_mail/user/systemd-mail-systemctl-status.j2"
|
||||||
dest: "/usr/local/bin/systemd-mail-systemctl-status"
|
dest: "/usr/local/bin/systemd-mail-systemctl-status"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "systemd-mail : systemd mail root service"
|
- name: "systemd_mail : systemd mail root service"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "./systemd-mail/system/status-mail@.service"
|
src: "./systemd_mail/system/status-mail@.service"
|
||||||
dest: "/etc/systemd/system/status-mail@.service"
|
dest: "/etc/systemd/system/status-mail@.service"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: systemd_system_status_mail_service_file
|
register: systemd_system_status_mail_service_file
|
||||||
|
|
||||||
- name: "systemd-mail : systemd mail user service"
|
- name: "systemd_mail : systemd mail user service"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "./systemd-mail/user/status-mail@.service"
|
src: "./systemd_mail/user/status-mail@.service"
|
||||||
dest: "/etc/systemd/user/status-mail@.service"
|
dest: "/etc/systemd/user/status-mail@.service"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: systemd_user_status_mail_service_file
|
register: systemd_user_status_mail_service_file
|
||||||
|
|
||||||
- name: "systemd-mail : systemd daemon reload"
|
- name: "systemd_mail : systemd daemon reload"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
when:
|
when:
|
@ -1,15 +0,0 @@
|
|||||||
- name: "unattended-upgrades : install unattended-upgrades"
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: "unattended-upgrades"
|
|
||||||
|
|
||||||
- name: "unattended-upgrades : configure unattended-upgrades"
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: "./unattended-upgrades/50unattended-upgrades"
|
|
||||||
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
|
|
||||||
mode: 0644
|
|
||||||
|
|
||||||
- name: "unattended-upgrades : enable unattended-upgrades"
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: "./unattended-upgrades/20auto-upgrades"
|
|
||||||
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
|
|
||||||
mode: 0644
|
|
@ -0,0 +1,15 @@
|
|||||||
|
- name: "unattended_upgrades : install unattended-upgrades"
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: "unattended-upgrades"
|
||||||
|
|
||||||
|
- name: "unattended_upgrades : configure unattended-upgrades"
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "./unattended_upgrades/50unattended-upgrades"
|
||||||
|
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: "unattended_upgrades : enable unattended-upgrades"
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "./unattended_upgrades/20auto-upgrades"
|
||||||
|
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
|
||||||
|
mode: 0644
|
@ -18,17 +18,17 @@
|
|||||||
import_tasks: "include/fstrim.yml"
|
import_tasks: "include/fstrim.yml"
|
||||||
tags: "role:system_base:fstrim"
|
tags: "role:system_base:fstrim"
|
||||||
|
|
||||||
- name: "role:system_base:unattended-upgrades"
|
- name: "role:system_base:unattended_upgrades"
|
||||||
import_tasks: "include/unattended-upgrades.yml"
|
import_tasks: "include/unattended_upgrades.yml"
|
||||||
tags: "role:system_base:unattended-upgrades"
|
tags: "role:system_base:unattended_upgrades"
|
||||||
|
|
||||||
- name: "role:system_base:logs"
|
- name: "role:system_base:logs"
|
||||||
import_tasks: "include/logs.yml"
|
import_tasks: "include/logs.yml"
|
||||||
tags: "role:system_base:logs"
|
tags: "role:system_base:logs"
|
||||||
|
|
||||||
- name: "role:system_base:systemd-mail"
|
- name: "role:system_base:systemd_mail"
|
||||||
import_tasks: "include/systemd-mail.yml"
|
import_tasks: "include/systemd_mail.yml"
|
||||||
tags: "role:system_base:systemd-mail"
|
tags: "role:system_base:systemd_mail"
|
||||||
|
|
||||||
- name: "role:system_base:utils"
|
- name: "role:system_base:utils"
|
||||||
import_tasks: "include/utils.yml"
|
import_tasks: "include/utils.yml"
|
||||||
|
@ -4,5 +4,5 @@ zpools: []
|
|||||||
# trim
|
# trim
|
||||||
zpools_trim: []
|
zpools_trim: []
|
||||||
|
|
||||||
# load-key
|
# load_key
|
||||||
zpools_load_key: []
|
zpools_load_key: []
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
# TODO: drop file dependence on hpool.
|
# TODO: drop file dependence on hpool.
|
||||||
|
|
||||||
- name: "load-key : zfs load key service file"
|
- name: "load_key : zfs load key service file"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "./load-key/zfs-load-key-hpool.service"
|
src: "./load_key/zfs-load-key-hpool.service"
|
||||||
dest: "/etc/systemd/system/zfs-load-key-hpool.service"
|
dest: "/etc/systemd/system/zfs-load-key-hpool.service"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: systemd_zfs_load_key_service_file
|
register: systemd_zfs_load_key_service_file
|
||||||
|
|
||||||
- name: "load-key : systemd daemon reload"
|
- name: "load_key : systemd daemon reload"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
when:
|
when:
|
||||||
systemd_zfs_load_key_service_file.changed
|
systemd_zfs_load_key_service_file.changed
|
||||||
|
|
||||||
- name: "load-key : enable service to load for {{ item }}"
|
- name: "load_key : enable service to load for {{ item }}"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "zfs-load-key-hpool.service"
|
name: "zfs-load-key-hpool.service"
|
||||||
enabled: true
|
enabled: true
|
@ -14,9 +14,9 @@
|
|||||||
import_tasks: "include/scrub.yml"
|
import_tasks: "include/scrub.yml"
|
||||||
tags: "role:system_zfs:scrub"
|
tags: "role:system_zfs:scrub"
|
||||||
|
|
||||||
- name: "role:system_zfs:load-key"
|
- name: "role:system_zfs:load_key"
|
||||||
import_tasks: "include/load-key.yml"
|
import_tasks: "include/load_key.yml"
|
||||||
tags: "role:system_zfs:load-key"
|
tags: "role:system_zfs:load_key"
|
||||||
|
|
||||||
- name: "role:system_zfs:fstrim"
|
- name: "role:system_zfs:fstrim"
|
||||||
import_tasks: "include/fstrim.yml"
|
import_tasks: "include/fstrim.yml"
|
||||||
|
Loading…
Reference in New Issue
Block a user