Skip to content

Commit

Permalink
support for new configuration options concerning command and command_…
Browse files Browse the repository at this point in the history
…email
  • Loading branch information
exploide committed Jul 11, 2017
1 parent 6bc5a63 commit 96bee72
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ dnf_automatic_upgrade_type: security
dnf_automatic_random_sleep: 300
dnf_automatic_emit_via: stdio
dnf_automatic_system_name: "{{ ansible_nodename }}"
dnf_automatic_command_format: cat
dnf_automatic_stdin_format: "{body}"
dnf_automatic_email_command_format: mail -s {subject} -r {email_from} {email_to}
dnf_automatic_email_stdin_format: "{body}"
dnf_automatic_email_from: root
dnf_automatic_email_to: root
dnf_automatic_email_host: localhost
Expand Down
10 changes: 10 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ dnf_automatic_random_sleep: 300
dnf_automatic_emit_via: stdio
dnf_automatic_system_name: "{{ ansible_nodename }}"

# [command]

dnf_automatic_command_format: cat
dnf_automatic_stdin_format: "{body}"

# [command_email]

dnf_automatic_email_command_format: mail -s {subject} -r {email_from} {email_to}
dnf_automatic_email_stdin_format: "{body}"

# [email]

dnf_automatic_email_from: root
Expand Down
12 changes: 12 additions & 0 deletions templates/automatic.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ random_sleep = {{ dnf_automatic_random_sleep }}
emit_via = {{ dnf_automatic_emit_via }}
system_name = {{ dnf_automatic_system_name }}

[command]

command_format = {{ dnf_automatic_command_format }}
stdin_format = {{ dnf_automatic_stdin_format }}

[command_email]

command_format = {{ dnf_automatic_email_command_format }}
stdin_format = {{ dnf_automatic_email_stdin_format }}
email_from = {{ dnf_automatic_email_from }}
email_to = {{ dnf_automatic_email_to }}

[email]

email_from = {{ dnf_automatic_email_from }}
Expand Down

0 comments on commit 96bee72

Please sign in to comment.