Skip to content

Commit a801224

Browse files
committed
Revert become changes in this PR
1 parent 5e2e452 commit a801224

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

etc/kayobe/ansible/wazuh-manager.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- generate-certs
1010
# Single node
1111
- hosts: wazuh-manager
12+
become: yes
1213
become_user: root
1314
roles:
1415
- role: "{{ playbook_dir }}/roles/wazuh-ansible/wazuh-ansible/roles/wazuh/wazuh-indexer"
@@ -22,6 +23,7 @@
2223
path: "{{ local_custom_sca_policies_path }}"
2324
register: custom_sca_policies_folder
2425
delegate_to: localhost
26+
become: no
2527

2628
- name: Gather list of custom SCA policies
2729
find:
@@ -30,9 +32,9 @@
3032
delegate_to: localhost
3133
register: custom_sca_policies
3234
when: custom_sca_policies_folder.stat.exists
35+
become: no
3336

3437
- name: Copy custom SCA policy files to Wazuh manager
35-
become: yes
3638
copy:
3739
# Note the trailing slash to copy directory contents
3840
src: "{{ local_custom_sca_policies_path }}/"
@@ -42,7 +44,6 @@
4244
when: custom_sca_policies.files | length > 0
4345

4446
- name: Add custom policy definition(s) to the shared Agent config
45-
becomd: yes
4647
blockinfile:
4748
path: "/var/ossec/etc/shared/default/agent.conf"
4849
state: present
@@ -65,7 +66,6 @@
6566
- Restart wazuh
6667

6768
- name: Set http/s_proxy vars in ossec-init.conf for vulnerability detector
68-
become: yes
6969
blockinfile:
7070
path: "/var/ossec/etc/ossec.conf"
7171
state: present
@@ -84,9 +84,9 @@
8484
path: "{{ local_custom_certs_path }}"
8585
register: custom_certificates_folder
8686
delegate_to: localhost
87+
become: no
8788

8889
- name: Copy the node & admin certificates to Wazuh dashboard
89-
become: yes
9090
copy:
9191
src: "{{ local_custom_certs_path }}/{{ item }}"
9292
dest: /etc/wazuh-dashboard/certs/
@@ -101,7 +101,6 @@
101101
- Restart wazuh-dashboard
102102

103103
- name: Perform health check against filebeat
104-
become: yes
105104
command: filebeat test output
106105
changed_when: false
107106
retries: 2
@@ -115,4 +114,4 @@
115114
- name: Restart wazuh-dashboard
116115
service:
117116
name: wazuh-dashboard
118-
state: restarted
117+
state: restarted

0 commit comments

Comments
 (0)