Skip to content

Commit

Permalink
chore: lintings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Nov 13, 2024
1 parent 4aaf623 commit e2ad473
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 14 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: Linting

"on":
push:
branches: ["main"]
branches: [main]
pull_request:
branches: ["main"]

branches: [main]
jobs:
build:
name: Ansible Lint
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Release

"on":
workflow_dispatch:

jobs:
semantic:
uses: nemental/.github/.github/workflows/release.yml@main
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion playbooks/packagemgmt.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Manage packages
hosts: all
become: true
Expand Down
1 change: 0 additions & 1 deletion playbooks/ufw.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Manage UFW
hosts: all
become: true
Expand Down
1 change: 0 additions & 1 deletion playbooks/usermgmt.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Manage users
hosts: all
become: true
Expand Down
1 change: 0 additions & 1 deletion roles/packagemgmt/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Manage packages
loop: "{{ packagemgmt_packages }}"
ansible.builtin.package:
Expand Down
1 change: 0 additions & 1 deletion roles/ufw/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Reset ufw
tags: [never, reset]
community.general.ufw:
Expand Down
7 changes: 3 additions & 4 deletions roles/usermgmt/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
---

- 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) }}"
state: "{{ group.state | default(omit) }}"

- 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) }}"
Expand All @@ -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 }}"

0 comments on commit e2ad473

Please sign in to comment.