Commit af997659 authored by julian.gethmann's avatar julian.gethmann Committed by root

Fix issue #90 autoupdate on lab computers

* Set autoupdate default to lab computers
* Create a new sub-group for the lab, so that one can handle their
  specific behaviour more easily (see
https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#inheriting-variable-values-group-variables-for-groups-of-groups )
parent 369d2cc3
...@@ -39,6 +39,8 @@ desktop_software: ...@@ -39,6 +39,8 @@ desktop_software:
- perl-Clipboard - perl-Clipboard
- perl-Capture-Tiny - perl-Capture-Tiny
upgrade_type: security
# Networking # Networking
# this should be the IP or in the sshd_config the "UseDNS" must be set to yes # this should be the IP or in the sshd_config the "UseDNS" must be set to yes
ansible_server: 129.13.238.126 ansible_server: 129.13.238.126
......
upgrade_type: default
...@@ -221,6 +221,11 @@ pepe.las.kit.edu ...@@ -221,6 +221,11 @@ pepe.las.kit.edu
faulus.las.kit.edu faulus.las.kit.edu
gutemine.las.kit.edu gutemine.las.kit.edu
[labs:children]
lab
tgu
# semi stable
[local] [local]
# 127.0.0.1 ansible_connection=local # 127.0.0.1 ansible_connection=local
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
- name: configure autoupdate - name: configure autoupdate
become: yes become: yes
copy: template:
src: automatic.conf src: automatic.j2
dest: /etc/dnf/automatic.conf dest: /etc/dnf/automatic.conf
mode: 0644 mode: 0644
owner: root owner: root
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# What kind of upgrade to perform: # What kind of upgrade to perform:
# default = all available upgrades # default = all available upgrades
# security = only the security upgrades # security = only the security upgrades
upgrade_type = security upgrade_type = {{ upgrade_type }}
random_sleep = 0 random_sleep = 0
# To just receive updates use dnf-automatic-notifyonly.timer # To just receive updates use dnf-automatic-notifyonly.timer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment