Skip to content

Instantly share code, notes, and snippets.

@tomrgio
Last active January 11, 2022 09:20
Show Gist options
  • Save tomrgio/93a0ab65fb5bb15d5c7b4d3e6af59b60 to your computer and use it in GitHub Desktop.
Save tomrgio/93a0ab65fb5bb15d5c7b4d3e6af59b60 to your computer and use it in GitHub Desktop.
- hosts: lacework_servers
become: yes
tasks:
- name: add apt signing key
apt_key:
keyserver: hkp://keyserver.ubuntu.com:80
id: EE0CC692
state: present
- name: add lacework repository into source list
apt_repository:
repo: "deb [arch=amd64] https://packages.lacework.net/latest/DEB/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main"
filename: lacework
state: present
update_cache: yes
- name: install lacework datacollector
apt:
name: lacework
state: latest
- name: wait until /var/lib/lacework/config/ is created
wait_for:
path: /var/lib/lacework/config/
- name: copy config.json
copy:
src: /etc/ansible/lacework/config.json
dest: /var/lib/lacework/config/config.json
owner: root
group: root
mode: 0644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment