Browse Source

current

master
parent
commit
8cb0f3cc03
13 changed files with 113 additions and 52 deletions
  1. +27
    -0
      desktop-config.yaml
  2. +18
    -0
      desktop-maintenance.yaml
  3. +27
    -0
      desktop-production.yaml
  4. +23
    -0
      desktop-updates.yaml
  5. +4
    -26
      desktop.yaml
  6. +0
    -7
      maintenance.yaml
  7. +4
    -0
      roles/custom_desktop_apps/defaults/main.yaml
  8. +3
    -0
      roles/custom_desktop_apps/tasks/main.yaml
  9. +2
    -6
      roles/custom_desktop_apps/tasks/teamviewer.yaml
  10. +4
    -0
      roles/custom_desktop_apps/tasks/zoom.yaml
  11. +0
    -0
      roles/custom_desktop_apps/templates/kitaplus.desktop.j2
  12. +0
    -12
      roles/kitaplus/tasks/main.yaml
  13. +1
    -1
      roles/updates

+ 27
- 0
desktop-config.yaml View File

@@ -0,0 +1,27 @@
---

- hosts:
- desktops
- laptops
remote_user: root
pre_tasks:
- name: ensure acpi tool is installed
apt:
pkg: acpi
- name: ensure host is on AC power
command: acpi -a
register: _acpi_ac_adapter
failed_when: '"off-line" in _acpi_ac_adapter.stdout'
changed_when: false
roles:
- name: display_manager
display_manager_state: maintenance
display_manager_maintenance_text: Konfigurationen werden angewendet und Programme werden installiert – bitte nicht abschalten!
display_manager_maintenance_icon: alacarte
- name: common
- name: users
- name: desktop
- name: desktop_bugfixes
- name: custom_desktop_apps
- name: backgrounds
- name: fonts

+ 18
- 0
desktop-maintenance.yaml View File

@@ -0,0 +1,18 @@
---

- hosts:
- desktops
- laptops
remote_user: root
pre_tasks:
- name: ensure acpi tool is installed
apt:
pkg: acpi
- name: ensure host is on AC power
command: acpi -a
register: _acpi_ac_adapter
failed_when: '"off-line" in _acpi_ac_adapter.stdout'
changed_when: false
roles:
- name: display_manager
display_manager_state: maintenance

+ 27
- 0
desktop-production.yaml View File

@@ -0,0 +1,27 @@
---

- hosts:
- desktops
- laptops
remote_user: root
pre_tasks:
- name: ensure acpi tool is installed
apt:
pkg: acpi
- name: ensure host is on AC power
command: acpi -a
register: _acpi_ac_adapter
failed_when: '"off-line" in _acpi_ac_adapter.stdout'
changed_when: false

roles:
- name: display_manager
display_manager_state: maintenance
display_manager_maintenance_text: Konfigurationen werden angewendet und Programme werden installiert – bitte nicht abschalten!
display_manager_maintenance_icon: alacarte
- name: common
- name: desktop
- name: desktop_bugfixes
- name: custom_desktop_apps
- name: backgrounds
- name: fonts

+ 23
- 0
desktop-updates.yaml View File

@@ -0,0 +1,23 @@
---

- hosts:
- desktops
- laptops
remote_user: root
pre_tasks:
- name: ensure acpi tool is installed
apt:
pkg: acpi
- name: ensure host is on AC power
command: acpi -a
register: _acpi_ac_adapter
failed_when: '"off-line" in _acpi_ac_adapter.stdout'
changed_when: false
roles:
- name: display_manager
display_manager_state: maintenance
display_manager_maintenance_text: Aktualisierungen werden durchgeführt – bitte nicht abschalten!
display_manager_maintenance_icon: system-software-update
- name: updates
microcode_update: true
reboot_after_updates: true

+ 4
- 26
desktop.yaml View File

@@ -1,28 +1,6 @@
---

- hosts: desktops:laptops
remote_user: root
pre_tasks:
- name: ensure acpi tool is installed
apt:
pkg: acpi
- name: ensure host is on AC power
command: acpi -a
register: _acpi_ac_adapter
failed_when: '"off-line" in _acpi_ac_adapter.stdout'
changed_when: false
roles:
- name: display_manager
display_manager_state: maintenance
display_manager_maintenance_text: Aktualisierungen werden durchgeführt – bitte nicht abschalten!
display_manager_maintenance_icon: system-software-update
- name: updates
microcode_update: true
reboot_after_updates: true
- name: common
- name: desktop
- name: desktop_bugfixes
- name: custom_desktop_apps
- name: backgrounds
- name: fonts
- name: display_manager
- import_playbook: desktop-maintenance.yaml
- import_playbook: desktop-updates.yaml
- import_playbook: desktop-config.yaml
- import_playbook: desktop-production.yaml

+ 0
- 7
maintenance.yaml View File

@@ -1,7 +0,0 @@
---

- hosts: desktops:laptops
remote_user: root
roles:
- name: display_manager
display_manager_state: maintenance

+ 4
- 0
roles/custom_desktop_apps/defaults/main.yaml View File

@@ -0,0 +1,4 @@
install_fotowall: false
install_cewe_fotobuch: false
install_teamviewer: false
install_zoom: true

+ 3
- 0
roles/custom_desktop_apps/tasks/main.yaml View File

@@ -10,3 +10,6 @@

- import_tasks: teamviewer.yaml
when: install_teamviewer | default(false)

- import_tasks: zoom.yaml
when: install_zoom | default(true)

+ 2
- 6
roles/custom_desktop_apps/tasks/teamviewer.yaml View File

@@ -1,8 +1,4 @@
---
- name: download teamviewer
get_url:
url: https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
dest: /opt/teamviewer_amd64.deb
- name: teamviewer package
- name: teamviewer
apt:
deb: /opt/teamviewer_amd64.deb
deb: https://download.teamviewer.com/download/linux/teamviewer_amd64.deb

+ 4
- 0
roles/custom_desktop_apps/tasks/zoom.yaml View File

@@ -0,0 +1,4 @@
---
- name: zoom
apt:
deb: https://zoom.us/client/latest/zoom_amd64.deb

roles/kitaplus/templates/kitaplus.desktop.j2 → roles/custom_desktop_apps/templates/kitaplus.desktop.j2 View File


+ 0
- 12
roles/kitaplus/tasks/main.yaml View File

@@ -1,12 +0,0 @@
---

- name: kitaplus icon
get_url:
url: "{{kita_plus_url}}/images/kitaplus_steine_16.png"
dest: /usr/share/icons/kitaplus.png
checksum: sha256:103cf55bfe772b02ca1e35be36ee9a90f0547d6e75f4b5ac3d97be17a0aef200

- name: kitaplus desktop file
template:
src: kitaplus.desktop.j2
dest: /usr/share/applications/kitaplus.desktop

+ 1
- 1
roles/updates

@@ -1 +1 @@
Subproject commit 810a08077a75b502a02d59d770f96e028f23ba0c
Subproject commit 7a8187cbf431e41ba4001b12e4774f316235f676