Skip to content

Commit

Permalink
added some more configuration variables and changed some defaults to …
Browse files Browse the repository at this point in the history
…conform to dnf docs
  • Loading branch information
exploide committed Apr 21, 2024
1 parent d04c03a commit 70db6dd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@ In particular, the following variables (including their default values) are used
```yaml
dnf_automatic_apply_updates: true
dnf_automatic_download_updates: true
dnf_automatic_network_online_timeout: 60
dnf_automatic_random_sleep: 0
dnf_automatic_upgrade_type: security
dnf_automatic_random_sleep: 300
dnf_automatic_emit_via: stdio
dnf_automatic_system_name: "{{ ansible_nodename }}"
dnf_automatic_send_error_messages: false
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_command_format: "mail -Ssendwait -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
dnf_automatic_email_port: 25
dnf_automatic_email_tls: "no"
dnf_automatic_email_to: root

dnf_automatic_base_overrides: {}
```
Expand Down
10 changes: 7 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

dnf_automatic_apply_updates: true
dnf_automatic_download_updates: true
dnf_automatic_network_online_timeout: 60
dnf_automatic_random_sleep: 0
dnf_automatic_upgrade_type: security
dnf_automatic_random_sleep: 300

# [emitters]

dnf_automatic_emit_via: stdio
dnf_automatic_system_name: "{{ ansible_nodename }}"
dnf_automatic_send_error_messages: false

# [command]

Expand All @@ -22,14 +24,16 @@ dnf_automatic_stdin_format: "{body}"

# [command_email]

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

# [email]

dnf_automatic_email_from: root
dnf_automatic_email_to: root
dnf_automatic_email_host: localhost
dnf_automatic_email_port: 25
dnf_automatic_email_tls: "no"
dnf_automatic_email_to: root

# [base]

Expand Down
8 changes: 6 additions & 2 deletions templates/automatic.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

apply_updates = {{ dnf_automatic_apply_updates }}
download_updates = {{ dnf_automatic_download_updates }}
upgrade_type = {{ dnf_automatic_upgrade_type }}
network_online_timeout = {{ dnf_automatic_network_online_timeout }}
random_sleep = {{ dnf_automatic_random_sleep }}
upgrade_type = {{ dnf_automatic_upgrade_type }}

[emitters]

emit_via = {{ dnf_automatic_emit_via }}
system_name = {{ dnf_automatic_system_name }}
send_error_messages = {{ dnf_automatic_send_error_messages }}

[command]

Expand All @@ -30,8 +32,10 @@ email_to = {{ dnf_automatic_email_to }}
[email]

email_from = {{ dnf_automatic_email_from }}
email_to = {{ dnf_automatic_email_to }}
email_host = {{ dnf_automatic_email_host }}
email_port = {{ dnf_automatic_email_port }}
email_tls = {{ dnf_automatic_email_tls }}
email_to = {{ dnf_automatic_email_to }}

[base]

Expand Down

0 comments on commit 70db6dd

Please sign in to comment.