Multiple fixes

- accounts : the user.yml task has a loop in a loop, var name need to be changed
- base, kshrc : fix a previously deleted command on which is based the command that follows
- base, ntp : do not display this task as a change, it only gets some information
This commit is contained in:
Jérémy Dubois 2022-01-25 17:28:28 +01:00
parent d643c15be5
commit fe6235f8fb
3 changed files with 5 additions and 1 deletions

View File

@ -45,11 +45,13 @@
- name: "Add {{ user.name }} to {{ evobsd_internal_group }}, {{ evobsd_ssh_group }}, {{ evobsd_sudo_group }} group"
user:
name: "{{ user.name }}"
groups: "{{ item }}"
groups: "{{ groups_item }}"
append: true
with_items:
- "{{ evobsd_internal_group }}"
- "{{ evobsd_ssh_group }}"
- "{{ evobsd_sudo_group }}"
loop_control:
loop_var: groups_item
tags:
- admin

View File

@ -18,6 +18,7 @@ bind '^[^[[C'=forward-word
bind '^[^[[D'=backward-word
set -A complete_kill_1 -- -9 -HUP -INFO -KILL -TERM
pgrep -q vmd
if [ $? = 0 ]; then
set -A complete_vmctl -- console load reload start stop reset status
set -A complete_vmctl_2 -- $(vmctl status | awk '!/NAME/{print $NF}')

View File

@ -4,6 +4,7 @@
args:
chdir: /etc/
check_mode: no
changed_when: no
register: ntpd_conf
tags:
- ntp