Skip to content
Snippets Groups Projects
Commit 6138bf73 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

*: Fix ansible-lint violations

parent 5ec906d0
No related branches found
No related tags found
1 merge request!11CI: Switch to plain Alpine image with modern ansible-lint
Pipeline #6983 passed
---
# file: roles/client/handlers/main.yml
- name: update apt cache
apt: update_cache=yes
apt:
update_cache: true
- name: restart sddm
service: name=sddm state=restarted
service:
name: sddm
state: restarted
- name: reload systemd service files
systemd: daemon_reload=yes
systemd:
daemon_reload: true
---
- include: kde.yml
- import_tasks: kde.yml
- meta: flush_handlers
- include: software.yml
- import_tasks: software.yml
- meta: flush_handlers
- include: configuration.yml
- import_tasks: configuration.yml
- meta: flush_handlers
- include: network.yml
- import_tasks: network.yml
- meta: flush_handlers
......@@ -33,7 +33,10 @@
- guest-overlay
- mount
- name: ensure the squasfs is created # noqa 301
- name: ensure the squashfs is created
# noqa no-changed-when
# This needs to be recreated unconditionally, as we cannot check if anything
# has changed.
command:
argv:
- mksquashfs
......
......@@ -5,7 +5,6 @@
daemon_reload: true
- name: Restart cron
systemd: name=cron state=restarted
- name: update apt cache
apt: update_cache=yes
systemd:
name: cron
state: restarted
---
# file: roles/portal/tasks/main.yml
- name: ensure additional software is installed
apt:
......@@ -15,6 +14,9 @@
file:
path: /etc/systemd/system/cron.service.d
state: directory
owner: root
group: root
mode: "0755"
tags:
- config
- cron
......@@ -23,6 +25,9 @@
copy:
dest: /etc/systemd/system/cron.service.d/after-network.conf
src: after-network.conf
owner: root
group: root
mode: "0644"
notify:
- Reload systemd
- Restart cron
......@@ -30,5 +35,4 @@
- config
- cron
- include: x2go.yml
- meta: flush_handlers
- import_tasks: x2go.yml
......@@ -18,25 +18,17 @@
apt_repository:
repo: 'deb http://packages.x2go.org/debian {{ debian_version }} main'
state: present
notify:
- update apt cache
tags:
- x2go
- repos
- meta: flush_handlers
- name: ensure x2go keyring is installed
apt:
name: x2go-keyring
state: present
notify:
- update apt cache
tags:
- x2go
- meta: flush_handlers
- name: ensure x2go server is installed
apt:
name:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment