1
0

add become statements

This commit is contained in:
michael 2022-09-03 01:42:23 +12:00
parent acffc9c72c
commit 7ff7a36eb3

View File

@ -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