From 2b76a72703a7fe98b0b53742ddf56db90b833b66 Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 25 Aug 2023 13:47:34 +0200 Subject: [PATCH] chore: fix formatting warning --- handlers/main.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 4ed0adf..1eafcef 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,19 +1,26 @@ --- - name: Update hostname - hostname: name={{ arch_base_hostname }} + ansible.builtin.hostname: + name: "{{ arch_base_hostname }}" + become: true - name: Update keymap - command: localectl set-keymap {{ arch_base_keymap }} + ansible.builtin.command: localectl set-keymap {{ arch_base_keymap }} become: true - name: Update_pacman_repos become: true - pacman: update_cache=true + community.general.pacman: + update_cache: true - name: Restart sshd - service: name=sshd state=restarted + ansible.builtin.service: + name: sshd + state: restarted become: true -- name: restart_sysctl - service: name=systemd-sysctl state=restarted +- name: Restart_sysctl + ansible.builtin.service: + name: systemd-sysctl + state: restarted become: true