mirror of
				https://gitlab.sectorq.eu/jaydee/ansible.git
				synced 2025-10-31 02:11:10 +01:00 
			
		
		
		
	initial
This commit is contained in:
		
							
								
								
									
										19
									
								
								roles/wazuh-agent/tasks/main.yml
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								roles/wazuh-agent/tasks/main.yml
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| - block: | ||||
|   - name: Get keys | ||||
|     ansible.builtin.shell: curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg | ||||
|  | ||||
|   - name: Add repo | ||||
|     ansible.builtin.shell: echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list | ||||
|   - name: Install docker | ||||
|     ansible.builtin.apt: | ||||
|       update_cache: true | ||||
|   - name: Add repo | ||||
|     ansible.builtin.shell: WAZUH_MANAGER="192.168.77.101" apt-get install wazuh-agent | ||||
|  | ||||
|   - name: Restart wazuh service | ||||
|     ansible.builtin.service: | ||||
|       name: wazuh-agent | ||||
|       state: restarted | ||||
|       enabled: true | ||||
|  | ||||
|   become: true | ||||
		Reference in New Issue
	
	Block a user
	 jaydee
					jaydee