No description
Find a file
2025-10-04 04:46:57 +00:00
defaults update common format + move volume to podman managed 2025-10-04 04:46:57 +00:00
meta initial commit 2025-09-12 04:33:42 +00:00
tasks update common format + move volume to podman managed 2025-10-04 04:46:57 +00:00
.gitignore initial commit 2025-09-12 04:33:42 +00:00
README.md initial commit 2025-09-12 04:33:42 +00:00

ansible-roles-elasticsearch

This role is designed to provide a basic elasticsearchql podman deployment

Task Configuration

- name: Setup elasticsearch
  hosts: somehost
  become: true
  roles:
    - role: elasticsearch
      elasticsearch_db_name: somedatabase
      elasticsearch_db_user someuser
      elasticsearch_db_password somepassword
    - role: firewalld
      firewalld_add:
        - name: public
          ports:
            - 5432/tcp

Deployment and Removal

Sometimes you need to manually stop the running containers to get a clean run when re-deploying Services must be stopped as the respecitve user or another means to aquire the correct user scope for systemd

systemctl --user stop container-elasticsearch.service

Deploy

ansible-playbook -i hosts site.yml --tags=firewalld,elasticsearch --limit=somehost

Remove

ansible-playbook -i hosts site.yml --tags=firewalld,elasticsearch --extra-vars "container_state=absent firewall_action=remove" --limit=somehost