Merge branch 'lint'

Fix linter warnings.

Warnings in imported roles (requirements.txt) cannot be fixed here.
This commit is contained in:
Stefan Haun 2020-12-12 23:11:14 +01:00
commit 052eeba266
6 changed files with 8 additions and 8 deletions

View file

@ -18,7 +18,7 @@
- name: Ensure unattended-upgrades is installed and up to date
apt:
name: unattended-upgrades
state: latest
state: present
- name: Setup unattended-upgrades
include_role:

View file

@ -3,7 +3,7 @@
apt:
name:
- apache2
state: latest
state: present
- name: Ensure necessary modules are enabled
apache2_module:

View file

@ -75,5 +75,5 @@
name: "{{ item.logname }}"
groups: docker
append: yes
when: item.docker == true
when: item.docker
with_items: "{{ users }}"

View file

@ -2,11 +2,11 @@
- name: Add or update Apache2 site
template:
src: templates/apache-docker-forward-site.j2
dest: /etc/apache2/sites-available/{{site_name}}.conf
dest: /etc/apache2/sites-available/{{ site_name }}.conf
notify: restart apache2
- name: Activate Apache2 site
command: a2ensite {{ site_name}}
command: a2ensite {{ site_name }}
args:
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
notify: restart apache2

View file

@ -2,11 +2,11 @@
- name: Add or update Apache2 site
template:
src: templates/apache-docker-proxy-site.j2
dest: /etc/apache2/sites-available/{{site_name}}.conf
dest: /etc/apache2/sites-available/{{ site_name }}.conf
notify: restart apache2
- name: Activate Apache2 site
command: a2ensite {{ site_name}}
command: a2ensite {{ site_name }}
args:
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
notify: restart apache2

View file

@ -37,7 +37,7 @@
name: "{{ item.logname }}"
groups: sudo
append: yes
when: item.sudo == true
when: item.sudo
with_items: "{{ users }}"
- name: Check if /etc/aliases exists