diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4877a11..1dd90c4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,10 +3,9 @@ name: Linting "on": push: - branches: ["main"] + branches: [main] pull_request: - branches: ["main"] - + branches: [main] jobs: build: name: Ansible Lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b2c289..0b49cf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,6 @@ name: Release "on": workflow_dispatch: - jobs: semantic: uses: nemental/.github/.github/workflows/release.yml@main diff --git a/galaxy.yml b/galaxy.yml index ee6de6d..c629373 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -9,7 +9,7 @@ description: Everything I need to set up my Linux servers dependencies: community.general: ">=9.3.0" ansible.posix: ">=1.5.4" -tags: ["application", "linux", "networking", "security", "tools"] +tags: [application, linux, networking, security, tools] repository: https://github.com/Nemental/ansible-collection-linux documentation: https://github.com/Nemental/ansible-collection-linux homepage: https://github.com/Nemental/ansible-collection-linux diff --git a/playbooks/packagemgmt.yml b/playbooks/packagemgmt.yml index 5c719d6..72b7b65 100644 --- a/playbooks/packagemgmt.yml +++ b/playbooks/packagemgmt.yml @@ -1,5 +1,4 @@ --- - - name: Manage packages hosts: all become: true diff --git a/playbooks/ufw.yml b/playbooks/ufw.yml index 1e9fb36..cfed0f6 100644 --- a/playbooks/ufw.yml +++ b/playbooks/ufw.yml @@ -1,5 +1,4 @@ --- - - name: Manage UFW hosts: all become: true diff --git a/playbooks/usermgmt.yml b/playbooks/usermgmt.yml index d2d66f7..4545d57 100644 --- a/playbooks/usermgmt.yml +++ b/playbooks/usermgmt.yml @@ -1,5 +1,4 @@ --- - - name: Manage users hosts: all become: true diff --git a/roles/packagemgmt/tasks/main.yml b/roles/packagemgmt/tasks/main.yml index 6973efc..677ecf2 100644 --- a/roles/packagemgmt/tasks/main.yml +++ b/roles/packagemgmt/tasks/main.yml @@ -1,5 +1,4 @@ --- - - name: Manage packages loop: "{{ packagemgmt_packages }}" ansible.builtin.package: diff --git a/roles/ufw/tasks/main.yml b/roles/ufw/tasks/main.yml index 19d6eba..03483d7 100644 --- a/roles/ufw/tasks/main.yml +++ b/roles/ufw/tasks/main.yml @@ -1,5 +1,4 @@ --- - - name: Reset ufw tags: [never, reset] community.general.ufw: diff --git a/roles/usermgmt/tasks/main.yml b/roles/usermgmt/tasks/main.yml index a72069d..c70d752 100644 --- a/roles/usermgmt/tasks/main.yml +++ b/roles/usermgmt/tasks/main.yml @@ -1,8 +1,7 @@ --- - - name: Manage groups loop: "{{ usermgmt_groups }}" - loop_control: {loop_var: group} + loop_control: { loop_var: group } ansible.builtin.group: name: "{{ group.name }}" gid: "{{ group.gid | default(omit) }}" @@ -10,7 +9,7 @@ - name: Manage users loop: "{{ usermgmt_users }}" - loop_control: {loop_var: user} + loop_control: { loop_var: user } ansible.builtin.user: name: "{{ user.name }}" password: "{{ user.password | default(omit) }}" @@ -22,7 +21,7 @@ - name: Manage user authorized keys loop: "{{ usermgmt_users }}" - loop_control: {loop_var: user} + loop_control: { loop_var: user } ansible.posix.authorized_key: user: "{{ user.name }}" key: "{{ user.key }}"