From 7ff7a36eb322a1625791a64bf304de7d9fb21358 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 3 Sep 2022 01:42:23 +1200 Subject: [PATCH] add become statements --- ansible/roles/sshd/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) 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