system/handlers/main.yml

27 lines
529 B
YAML
Raw Normal View History

2018-12-02 20:03:03 +00:00
---
- name: Update hostname
2023-08-25 11:47:34 +00:00
ansible.builtin.hostname:
name: "{{ arch_base_hostname }}"
become: true
2018-12-02 20:03:03 +00:00
- name: Update keymap
2023-08-25 11:47:34 +00:00
ansible.builtin.command: localectl set-keymap {{ arch_base_keymap }}
2023-08-25 11:40:35 +00:00
become: true
2018-12-02 20:03:03 +00:00
2019-01-08 21:04:00 +00:00
- name: Update_pacman_repos
2022-02-13 08:40:15 +00:00
become: true
2023-08-25 11:47:34 +00:00
community.general.pacman:
update_cache: true
2019-01-08 21:04:00 +00:00
2018-12-02 20:03:03 +00:00
- name: Restart sshd
2023-08-25 11:47:34 +00:00
ansible.builtin.service:
name: sshd
state: restarted
2022-02-13 08:40:15 +00:00
become: true
2022-02-13 08:01:05 +00:00
2023-08-25 11:47:34 +00:00
- name: Restart_sysctl
ansible.builtin.service:
name: systemd-sysctl
state: restarted
2022-02-13 08:42:18 +00:00
become: true