add become statements
This commit is contained in:
parent
acffc9c72c
commit
7ff7a36eb3
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: install openssh arch
|
- name: install openssh arch
|
||||||
|
become: true
|
||||||
community.general.pacman:
|
community.general.pacman:
|
||||||
name: "{{ openssh_packages }}"
|
name: "{{ openssh_packages }}"
|
||||||
state: latest
|
state: latest
|
||||||
@ -17,6 +18,7 @@
|
|||||||
group: "{{ ansible_user }}"
|
group: "{{ ansible_user }}"
|
||||||
|
|
||||||
- name: configure openssh
|
- name: configure openssh
|
||||||
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: "{{ openssh_configuration_file }}"
|
dest: "{{ openssh_configuration_file }}"
|
||||||
src: "{{ openssh_configuration_src }}"
|
src: "{{ openssh_configuration_src }}"
|
||||||
@ -27,6 +29,7 @@
|
|||||||
- restart openssh
|
- restart openssh
|
||||||
|
|
||||||
- name: start and enable openssh
|
- name: start and enable openssh
|
||||||
|
become: true
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: "{{ openssh_service }}"
|
name: "{{ openssh_service }}"
|
||||||
state: started
|
state: started
|
||||||
|
Loading…
Reference in New Issue
Block a user