diff --git a/ansible/roles/sshd/tasks/main.yml b/ansible/roles/sshd/tasks/main.yml index c8cfbd5..dbdae16 100644 --- a/ansible/roles/sshd/tasks/main.yml +++ b/ansible/roles/sshd/tasks/main.yml @@ -1,5 +1,6 @@ --- - name: install openssh arch + become: true community.general.pacman: name: "{{ openssh_packages }}" state: latest @@ -17,6 +18,7 @@ group: "{{ ansible_user }}" - name: configure openssh + become: true ansible.builtin.copy: dest: "{{ openssh_configuration_file }}" src: "{{ openssh_configuration_src }}" @@ -27,6 +29,7 @@ - restart openssh - name: start and enable openssh + become: true ansible.builtin.service: name: "{{ openssh_service }}" state: started