You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.0 KiB
YAML

---
- name: Install required packages
apt:
state: present
name:
- dehydrated # main package
- name: Create configuration directory
file:
state: directory
path: "{{ global_dehydrated_configuration_directory }}"
owner: root
group: "{{ global_dehydrated_system_user }}"
mode: u=rwx,g=rx,o=
- name: Configure dehydrated
template:
src: config
dest: "{{ configuration_file }}"
owner: root
group: "{{ global_dehydrated_system_user }}"
mode: u=rw,g=r,o=
validate: "{{ global_validate_shell_script }}"
- name: Deploy global hook config
copy:
content: |
{{ hook_config | to_nice_json }}
dest: "{{ global_dehydrated_hook_configuration_file }}"
owner: root
group: "{{ global_dehydrated_system_user }}"
mode: u=rw,g=r,o=
- name: Deploy global hook script
template:
src: hook.py
dest: "{{ hook_script_path }}"
owner: root
group: "{{ global_dehydrated_system_user }}"
mode: u=rwx,g=rx,o=
validate: "{{ global_validate_shell_script }}"