Skip to content
Snippets Groups Projects
Commit cfe756f3 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

style: satisfy linter

parent 00f431f2
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ use_default_rules: true ...@@ -42,6 +42,7 @@ use_default_rules: true
skip_list: skip_list:
- skip_this_tag - skip_this_tag
- git-latest - git-latest
- name[casing]
# Any rule that has the 'opt-in' tag will not be loaded unless its 'id' is # Any rule that has the 'opt-in' tag will not be loaded unless its 'id' is
# mentioned in the enable_list: # mentioned in the enable_list:
......
---
# A pipeline is composed of independent jobs that run scripts, grouped into stages. # A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel. # Stages run in sequential order, but jobs within stages run in parallel.
# #
...@@ -32,5 +33,5 @@ test-job: ...@@ -32,5 +33,5 @@ test-job:
- molecule create --scenario-name default - molecule create --scenario-name default
- molecule converge --scenario-name default - molecule converge --scenario-name default
- molecule idempotence --scenario-name default - molecule idempotence --scenario-name default
#- molecule verify --scenario-name default # - molecule verify --scenario-name default
- molecule destroy --scenario-name default - molecule destroy --scenario-name default
...@@ -8,17 +8,18 @@ ...@@ -8,17 +8,18 @@
mode: 0755 mode: 0755
listen: "save iptables rules" listen: "save iptables rules"
- name: install netfilter-persistent to be able to save iptables rules - name: persist changes in iptables configuration
ansible.builtin.apt: block:
name: "netfilter-persistent" - name: install netfilter-persistent to be able to save iptables rules
state: present ansible.builtin.apt:
listen: "save iptables rules" name: "netfilter-persistent"
state: present
- name: save iptables rules listen: "save iptables rules"
ansible.builtin.command: 'netfilter-persistent save' - name: save iptables rules
listen: "save iptables rules" ansible.builtin.command: 'netfilter-persistent save'
changed_when: false
- name: restart squid proxy listen: "save iptables rules"
ansible.builtin.systemd: - name: restart squid proxy
name: "squid.service" ansible.builtin.systemd:
state: restarted name: "squid.service"
state: restarted
--- ---
galaxy_info: galaxy_info:
role_name: ansible_lza_proxy
namespace: slub
author: Jörg Sachse author: Jörg Sachse
description: role to install Squid caching proxy server for the SLUBarchiv digital preservation repository
company: SLUB Dresden company: SLUB Dresden
namespace: slub description: role to install Squid caching proxy server for the SLUBarchiv digital preservation repository
# If the issue tracker for your role is not on github, uncomment the next line and provide a value issue_tracker_url: http://example.com/issue/tracker Some suggested licenses: - BSD # galaxy_tags: []
# (default) - MIT - GPLv2 - GPLv3 - Apache - CC-BY # List tags for your role here, one per line. A tag is a keyword that describes and categorizes the role. Users find roles by searching for tags. Be sure to remove the '[]' above, if you
license: public domain # add tags to this list.
min_ansible_version: "2.4" #
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
# issue_tracker_url: "https://example.com/"
# If the issue tracker for your role is not on github, uncomment the next line and provide a value issue_tracker_url: http://example.com/issue/tracker
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: GPL-3.0-or-later
min_ansible_version: "2.5"
# If this a Container Enabled role, provide the minimum Ansible Container version. min_ansible_container_version: Optionally specify the branch Galaxy will use when accessing the GitHub repo # If this a Container Enabled role, provide the minimum Ansible Container version. min_ansible_container_version: Optionally specify the branch Galaxy will use when accessing the GitHub repo
# for this role. During role install, if no tags are available, Galaxy will use this branch. During import Galaxy will access files on this branch. If Travis integration is configured, only # for this role. During role install, if no tags are available, Galaxy will use this branch. During import Galaxy will access files on this branch. If Travis integration is configured, only
# notifications for this branch will be accepted. Otherwise, in all cases, the repo's default branch (usually master) will be used. github_branch: # notifications for this branch will be accepted. Otherwise, in all cases, the repo's default branch (usually master) will be used. github_branch:
#
# Provide a list of supported platforms, and for each platform a list of versions. If you don't wish to enumerate all versions for a particular platform, use 'all'. To view available # Provide a list of supported platforms, and for each platform a list of versions. If you don't wish to enumerate all versions for a particular platform, use 'all'. To view available
# platforms and versions (or releases), visit: https://galaxy.ansible.com/api/v1/platforms/ # platforms and versions (or releases), visit: https://galaxy.ansible.com/api/v1/platforms/
# #
...@@ -20,13 +35,10 @@ galaxy_info: ...@@ -20,13 +35,10 @@ galaxy_info:
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- all - "bullseye"
galaxy_tags: [] - "bookworm"
# List tags for your role here, one per line. A tag is a keyword that describes and categorizes the role. Users find roles by searching for tags. Be sure to remove the '[]' above, if you - name: EL
# add tags to this list. versions:
# - "7"
# NOTE: A tag is limited to a single word comprised of alphanumeric characters. - "8"
# Maximum 20 tags per role. dependencies: []
dependencies:
# - ansible_lza_install_common
# - ansible_lza_server_hardening
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
hosts: all hosts: all
gather_facts: false gather_facts: false
tasks: tasks:
- name: Example assertion - name: Example assertion
assert: assert:
that: true that: true
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
source_port: "{{ item.src_port | default(omit) }}" source_port: "{{ item.src_port | default(omit) }}"
state: "{{ item.state | default('present') }}" state: "{{ item.state | default('present') }}"
table: filter table: filter
loop: "{{ vault_iptables|flatten(levels=1) }}" loop: "{{ vault_iptables | flatten(levels=1) }}"
notify: notify:
- save iptables rules - save iptables rules
...@@ -35,6 +35,6 @@ ...@@ -35,6 +35,6 @@
source_port: "{{ item.src_port | default(omit) }}" source_port: "{{ item.src_port | default(omit) }}"
state: "{{ item.state | default('present') }}" state: "{{ item.state | default('present') }}"
table: filter table: filter
loop: "{{ vault_iptables|flatten(levels=1) }}" loop: "{{ vault_iptables | flatten(levels=1) }}"
notify: notify:
- save iptables rules - save iptables rules
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
mode: 0755 mode: 0755
- name: NFS-Shares für Logging mounten - name: NFS-Shares für Logging mounten
ansible.builtin.mount: ansible.posix.mount:
name: "{{ vault_nfs_mounts.log.mountpoint }}" name: "{{ vault_nfs_mounts.log.mountpoint }}"
src: "{{ vault_nfs_mounts.log.share }}/{{ ansible_hostname }}" src: "{{ vault_nfs_mounts.log.share }}/{{ ansible_hostname }}"
state: mounted state: mounted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment