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

*: Fix ansible-lint violations

parent 5ec906d0
Branches
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 - name: update apt cache
apt: update_cache=yes apt:
update_cache: true
- name: restart sddm - name: restart sddm
service: name=sddm state=restarted service:
name: sddm
state: restarted
- name: reload systemd service files - name: reload systemd service files
systemd: daemon_reload=yes systemd:
daemon_reload: true
--- ---
- include: kde.yml - import_tasks: kde.yml
- meta: flush_handlers - meta: flush_handlers
- include: software.yml - import_tasks: software.yml
- meta: flush_handlers - meta: flush_handlers
- include: configuration.yml - import_tasks: configuration.yml
- meta: flush_handlers - meta: flush_handlers
- include: network.yml - import_tasks: network.yml
- meta: flush_handlers - meta: flush_handlers
...@@ -33,7 +33,10 @@ ...@@ -33,7 +33,10 @@
- guest-overlay - guest-overlay
- mount - 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: command:
argv: argv:
- mksquashfs - mksquashfs
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
daemon_reload: true daemon_reload: true
- name: Restart cron - name: Restart cron
systemd: name=cron state=restarted systemd:
name: cron
- name: update apt cache state: restarted
apt: update_cache=yes
--- ---
# file: roles/portal/tasks/main.yml
- name: ensure additional software is installed - name: ensure additional software is installed
apt: apt:
...@@ -15,6 +14,9 @@ ...@@ -15,6 +14,9 @@
file: file:
path: /etc/systemd/system/cron.service.d path: /etc/systemd/system/cron.service.d
state: directory state: directory
owner: root
group: root
mode: "0755"
tags: tags:
- config - config
- cron - cron
...@@ -23,6 +25,9 @@ ...@@ -23,6 +25,9 @@
copy: copy:
dest: /etc/systemd/system/cron.service.d/after-network.conf dest: /etc/systemd/system/cron.service.d/after-network.conf
src: after-network.conf src: after-network.conf
owner: root
group: root
mode: "0644"
notify: notify:
- Reload systemd - Reload systemd
- Restart cron - Restart cron
...@@ -30,5 +35,4 @@ ...@@ -30,5 +35,4 @@
- config - config
- cron - cron
- include: x2go.yml - import_tasks: x2go.yml
- meta: flush_handlers
...@@ -18,25 +18,17 @@ ...@@ -18,25 +18,17 @@
apt_repository: apt_repository:
repo: 'deb http://packages.x2go.org/debian {{ debian_version }} main' repo: 'deb http://packages.x2go.org/debian {{ debian_version }} main'
state: present state: present
notify:
- update apt cache
tags: tags:
- x2go - x2go
- repos - repos
- meta: flush_handlers
- name: ensure x2go keyring is installed - name: ensure x2go keyring is installed
apt: apt:
name: x2go-keyring name: x2go-keyring
state: present state: present
notify:
- update apt cache
tags: tags:
- x2go - x2go
- meta: flush_handlers
- name: ensure x2go server is installed - name: ensure x2go server is installed
apt: apt:
name: name:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment