Skip to content

Commit 96bee72

Browse files
committed
support for new configuration options concerning command and command_email
1 parent 6bc5a63 commit 96bee72

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ dnf_automatic_upgrade_type: security
2424
dnf_automatic_random_sleep: 300
2525
dnf_automatic_emit_via: stdio
2626
dnf_automatic_system_name: "{{ ansible_nodename }}"
27+
dnf_automatic_command_format: cat
28+
dnf_automatic_stdin_format: "{body}"
29+
dnf_automatic_email_command_format: mail -s {subject} -r {email_from} {email_to}
30+
dnf_automatic_email_stdin_format: "{body}"
2731
dnf_automatic_email_from: root
2832
dnf_automatic_email_to: root
2933
dnf_automatic_email_host: localhost

defaults/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ dnf_automatic_random_sleep: 300
1515
dnf_automatic_emit_via: stdio
1616
dnf_automatic_system_name: "{{ ansible_nodename }}"
1717

18+
# [command]
19+
20+
dnf_automatic_command_format: cat
21+
dnf_automatic_stdin_format: "{body}"
22+
23+
# [command_email]
24+
25+
dnf_automatic_email_command_format: mail -s {subject} -r {email_from} {email_to}
26+
dnf_automatic_email_stdin_format: "{body}"
27+
1828
# [email]
1929

2030
dnf_automatic_email_from: root

templates/automatic.conf.j2

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ random_sleep = {{ dnf_automatic_random_sleep }}
1515
emit_via = {{ dnf_automatic_emit_via }}
1616
system_name = {{ dnf_automatic_system_name }}
1717

18+
[command]
19+
20+
command_format = {{ dnf_automatic_command_format }}
21+
stdin_format = {{ dnf_automatic_stdin_format }}
22+
23+
[command_email]
24+
25+
command_format = {{ dnf_automatic_email_command_format }}
26+
stdin_format = {{ dnf_automatic_email_stdin_format }}
27+
email_from = {{ dnf_automatic_email_from }}
28+
email_to = {{ dnf_automatic_email_to }}
29+
1830
[email]
1931

2032
email_from = {{ dnf_automatic_email_from }}

0 commit comments

Comments
 (0)