Skip to content

Commit

Permalink
base: add additional tags to make rollout of sshd and sysctl possible…
Browse files Browse the repository at this point in the history
… witohut applying whole base role
  • Loading branch information
gebi committed Jan 25, 2025
1 parent 673bf11 commit 2f1f8e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/base/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@
with_dict: "{{ sysctl_config | combine(sysctl_config_user) }}"
loop_control:
label: "{{ item.key }} = {{ item.value }}"
tags:
- sysctl

## the options could be set using sysctl as well but only if the sunrpc module
## has been loaded which is not the case for all machines. Doing it via sysctl
Expand Down
2 changes: 2 additions & 0 deletions roles/base/tasks/sshd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
line: UsePAM {{ base_ssh_use_pam }}
loop_control:
label: "{{ item.line }}"
tags:
- sshd
notify: Restart sshd

# OMG, this is broken... be VERY careful using this!
Expand Down

0 comments on commit 2f1f8e7

Please sign in to comment.