add become statements
This commit is contained in:
parent
acffc9c72c
commit
7ff7a36eb3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user