aboutsummaryrefslogtreecommitdiff
path: root/roles/guest-configure/tasks/automatic-update.yml
diff options
context:
space:
mode:
authorspmfox <spmfox@foxwd.com>2023-06-17 00:32:55 -0400
committerspmfox <spmfox@foxwd.com>2023-06-17 00:32:55 -0400
commitf035f1f259dd617e8d4459008d7e1165ea04c025 (patch)
treee9b4668fab41b1ab48cebde003f1598109830912 /roles/guest-configure/tasks/automatic-update.yml
parent43b40c78e4668fa21be2d61a18ab7dbb745b8427 (diff)
adding automatic updates, user shell, and prerequisite packages
Diffstat (limited to 'roles/guest-configure/tasks/automatic-update.yml')
-rw-r--r--roles/guest-configure/tasks/automatic-update.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/guest-configure/tasks/automatic-update.yml b/roles/guest-configure/tasks/automatic-update.yml
new file mode 100644
index 0000000..71c102e
--- /dev/null
+++ b/roles/guest-configure/tasks/automatic-update.yml
@@ -0,0 +1,13 @@
+- name: RedHat block
+ block:
+ - name: Install dnf-automatic (RedHat)
+ ansible.builtin.package:
+ name: dnf-automatic
+ state: present
+
+ - name: Enable dnf-automatic systemd service (RedHat)
+ ansible.builtin.service:
+ name: dnf-automatic-install.timer
+ enabled: yes
+ state: started
+ when: ansible_os_family == "RedHat"