🚨 Fix linter warnings of type 'name[casing]'
ansible-lint reads like this: name[casing]: All names should start with an uppercase letter. While at it: Some task/handler names were slightly adapted to better match what should be done.
This commit is contained in:
parent
266ba39473
commit
8b2ab7753d
21 changed files with 42 additions and 42 deletions
host-beaker.ymlhost-platon.ymlhost-pottwal.ymlhost-radon.ymlsetup-ssh.yml
roles
apache
apache_letsencrypt
dd24_dyndns_cron
desec_dyndns_cron
nfs_host
nginx_https_ingress
setup_http_site_forward
setup_http_site_proxy
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: enable proxmox gui login for admin users
|
- name: Enable proxmox gui login for admin users
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/pve/user.cfg
|
path: /etc/pve/user.cfg
|
||||||
regexp: "^user:{{ item.logname }}@pam"
|
regexp: "^user:{{ item.logname }}@pam"
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ users }}"
|
loop: "{{ users }}"
|
||||||
|
|
||||||
- name: configure proxmox admin group
|
- name: Configure proxmox admin group
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/pve/user.cfg
|
path: /etc/pve/user.cfg
|
||||||
regexp: "^group:Admins:"
|
regexp: "^group:Admins:"
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: restart mosquitto
|
notify: Restart mosquitto service
|
||||||
|
|
||||||
|
|
||||||
### Sesam for SSH access
|
### Sesam for SSH access
|
||||||
|
@ -245,7 +245,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: restart rsyslog
|
notify: Restart rsyslog
|
||||||
|
|
||||||
|
|
||||||
### Asterisk
|
### Asterisk
|
||||||
|
@ -258,7 +258,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: restart asterisk
|
notify: Restart asterisk
|
||||||
|
|
||||||
- name: Set up extensions for asterisk
|
- name: Set up extensions for asterisk
|
||||||
# This uses the variables gatekeeper_user and door_open_command
|
# This uses the variables gatekeeper_user and door_open_command
|
||||||
|
@ -268,14 +268,14 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: restart asterisk
|
notify: Restart asterisk
|
||||||
|
|
||||||
- name: Ensure asterisk is in the right groups
|
- name: Ensure asterisk is in the right groups
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: asterisk
|
name: asterisk
|
||||||
groups: audio,i2c,gpio
|
groups: audio,i2c,gpio
|
||||||
append: yes
|
append: yes
|
||||||
notify: restart asterisk
|
notify: Restart asterisk
|
||||||
|
|
||||||
# Asterisk now executes shell scripts with reduced privileges, so we need to
|
# Asterisk now executes shell scripts with reduced privileges, so we need to
|
||||||
# use sudo for I2C access.
|
# use sudo for I2C access.
|
||||||
|
@ -304,19 +304,19 @@
|
||||||
|
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: restart mosquitto
|
- name: Restart mosquitto service
|
||||||
service:
|
service:
|
||||||
name: mosquitto
|
name: mosquitto
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: restart rsyslog
|
- name: Restart rsyslog
|
||||||
service:
|
service:
|
||||||
name: rsyslog
|
name: rsyslog
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: restart asterisk
|
- name: Restart asterisk
|
||||||
service:
|
service:
|
||||||
name: asterisk
|
name: asterisk
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -642,7 +642,7 @@
|
||||||
src: templates/pottwal/renovate-cron.j2
|
src: templates/pottwal/renovate-cron.j2
|
||||||
dest: /etc/cron.hourly/renovate-bot
|
dest: /etc/cron.hourly/renovate-bot
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
notify: reload cron
|
notify: Reload cron
|
||||||
tags:
|
tags:
|
||||||
- renovate
|
- renovate
|
||||||
|
|
||||||
|
@ -658,7 +658,7 @@
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: reload cron
|
- name: Reload cron
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: service cron reload
|
cmd: service cron reload
|
||||||
# Use the shell call because the task sometimes has problems finding the service state
|
# Use the shell call because the task sometimes has problems finding the service state
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
src: "templates/mosquitto.conf.j2"
|
src: "templates/mosquitto.conf.j2"
|
||||||
dest: "{{ mosquitto_data }}/config/mosquitto.conf"
|
dest: "{{ mosquitto_data }}/config/mosquitto.conf"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: restart mosquitto
|
notify: Restart mosquitto container
|
||||||
tags:
|
tags:
|
||||||
- mosquitto
|
- mosquitto
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@
|
||||||
- grafana-screenshot
|
- grafana-screenshot
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: restart mosquitto
|
- name: Restart mosquitto container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: mosquitto
|
name: mosquitto
|
||||||
state: started
|
state: started
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Handlers for role apache
|
# Handlers for role apache
|
||||||
---
|
---
|
||||||
- name: restart apache2
|
- name: Restart apache2
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
notify: restart apache2
|
notify: Restart apache2
|
||||||
|
|
||||||
- name: Add symlink to enable configuration
|
- name: Add symlink to enable configuration
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -32,4 +32,4 @@
|
||||||
state: link
|
state: link
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
notify: restart apache2
|
notify: Restart apache2
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Handlers for role apache_letsencrypt
|
# Handlers for role apache_letsencrypt
|
||||||
---
|
---
|
||||||
- name: restart apache2
|
- name: Restart apache2
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
notify: restart apache2
|
notify: Restart apache2
|
||||||
|
|
||||||
- name: Add symlink to enable configuration
|
- name: Add symlink to enable configuration
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -17,4 +17,4 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
notify: restart apache2
|
notify: Restart apache2
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# handlers file for cron-dd24-dyndns
|
# handlers file for cron-dd24-dyndns
|
||||||
---
|
---
|
||||||
- name: reload cron
|
- name: Reload cron
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: service cron reload
|
cmd: service cron reload
|
||||||
warn: no
|
warn: no
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: reload cron
|
notify: Reload cron
|
||||||
# There is ansible.builtin.cron, but this makes configuration much
|
# There is ansible.builtin.cron, but this makes configuration much
|
||||||
# more complicated, so we stick to the template.
|
# more complicated, so we stick to the template.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# handlers file for desec_dyndns_cron
|
# handlers file for desec_dyndns_cron
|
||||||
---
|
---
|
||||||
- name: reload cron
|
- name: Reload cron
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: service cron reload
|
cmd: service cron reload
|
||||||
warn: no
|
warn: no
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: reload cron
|
notify: Reload cron
|
||||||
# There is ansible.builtin.cron, but this makes configuration much
|
# There is ansible.builtin.cron, but this makes configuration much
|
||||||
# more complicated, so we stick to the template.
|
# more complicated, so we stick to the template.
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
- name: reload nfs
|
- name: Reload nfs
|
||||||
command: 'exportfs -ra'
|
command: 'exportfs -ra'
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
state: present
|
state: present
|
||||||
fs_type: ext4
|
fs_type: ext4
|
||||||
|
|
||||||
- name: ensure nfs mountpoints exist
|
- name: Ensure nfs mountpoints exist
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.directory }}"
|
path: "{{ item.directory }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -30,11 +30,11 @@
|
||||||
fstype: ext4
|
fstype: ext4
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: template /etc/exports
|
- name: Put /etc/exports in place from template
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: templates/exports.j2
|
src: templates/exports.j2
|
||||||
dest: "/etc/exports"
|
dest: "/etc/exports"
|
||||||
notify: reload nfs
|
notify: Reload nfs
|
||||||
|
|
||||||
- name: Ensure nfs is running.
|
- name: Ensure nfs is running.
|
||||||
ansible.builtin.service: "name=nfs-kernel-server state=started enabled=yes"
|
ansible.builtin.service: "name=nfs-kernel-server state=started enabled=yes"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Handlers für nginx-https-proxy
|
# Handlers für nginx-https-proxy
|
||||||
---
|
---
|
||||||
- name: restart nginx
|
- name: Restart nginx
|
||||||
service:
|
service:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
- name: Create directory for dehydrated forwardings
|
- name: Create directory for dehydrated forwardings
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
loop: "{{ ingress }}"
|
loop: "{{ ingress }}"
|
||||||
notify: restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
- name: Setup nginx configuration
|
- name: Setup nginx configuration
|
||||||
# Note the order here: The nginx configuration _needs_ he dehydrated-hosts
|
# Note the order here: The nginx configuration _needs_ he dehydrated-hosts
|
||||||
|
@ -86,4 +86,4 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: restart nginx
|
notify: Restart nginx
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: restart apache2
|
- name: Restart apache2
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
template:
|
template:
|
||||||
src: templates/apache-docker-forward-site.j2
|
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
|
notify: Restart apache2
|
||||||
|
|
||||||
- name: Activate Apache2 site
|
- name: Activate Apache2 site
|
||||||
command: a2ensite {{ site_name }}
|
command: a2ensite {{ site_name }}
|
||||||
args:
|
args:
|
||||||
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
|
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
|
||||||
notify: restart apache2
|
notify: Restart apache2
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: restart apache2
|
- name: Restart apache2
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
src: templates/apache-docker-proxy-site.j2
|
src: templates/apache-docker-proxy-site.j2
|
||||||
dest: /etc/apache2/sites-available/{{ site_name }}.conf
|
dest: /etc/apache2/sites-available/{{ site_name }}.conf
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: restart apache2
|
notify: Restart apache2
|
||||||
|
|
||||||
- name: Activate Apache2 site
|
- name: Activate Apache2 site
|
||||||
command: a2ensite {{ site_name }}
|
command: a2ensite {{ site_name }}
|
||||||
args:
|
args:
|
||||||
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
|
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
|
||||||
notify: restart apache2
|
notify: Restart apache2
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
---
|
---
|
||||||
- name: configure local ssh to access n39 hosts
|
- name: Configure local ssh to access n39 hosts
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: ensure {{ lookup('env', 'HOME') }}/.ssh/config.d/ dir is present
|
- name: Ensure {{ lookup('env', 'HOME') }}/.ssh/config.d/ dir is present
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ lookup('env', 'HOME') }}/.ssh/config.d/"
|
path: "{{ lookup('env', 'HOME') }}/.ssh/config.d/"
|
||||||
state: directory
|
state: directory
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: template ssh config for access to internal systems
|
- name: Put ssh config for access to n39 internal systems in place
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: templates/ssh_config.j2
|
src: templates/ssh_config.j2
|
||||||
dest: "{{ lookup('env', 'HOME') }}/.ssh/config.d/n39_config"
|
dest: "{{ lookup('env', 'HOME') }}/.ssh/config.d/n39_config"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: ensure that n39 access config is included
|
- name: Ensure that n39 access config is included
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: ~/.ssh/config
|
path: ~/.ssh/config
|
||||||
insertbefore: BOF
|
insertbefore: BOF
|
||||||
|
|
Loading…
Add table
Reference in a new issue