ansible-role-chill/tasks/main.yml
Julien Fastré c572d68eb4
Fix logging paths and permissions for chill role configuration
Corrected log file paths in Monolog configuration and Compose file for consistency. Updated directory permissions in tasks to allow group write access. These changes improve log file organization and facilitate better collaboration.
2025-01-13 10:52:15 +01:00

60 lines
1.4 KiB
YAML

# code: language=ansible
---
- name: Install docker and docker compose plugin
ansible.builtin.include_role:
name: geerlingguy.docker
vars:
docker_edition: ce
docker_package_state: latest
docker_service_manage: true
docker_service_state: started
docker_service_enabled: true
docker_install_compose_plugin: true
docker_add_repo: true
- name: Print all available facts
ansible.builtin.debug:
var: ansible_facts
- name: Authenticate against private docker registry
community.docker.docker_login:
registry_url: "{{ registry_url }}"
username: "{{ registry_username }}"
password: "{{ registry_password }}"
- name: Authenticate against docker hub
community.docker.docker_login:
username: "{{ docker_hub_username }}"
password: "{{ docker_hub_token }}"
- name: Create log directory
ansible.builtin.file:
path: /var/log/chill
state: directory
owner: 33
group: 33
mode: '0774'
- name: Install traefik
ansible.builtin.include_tasks: traefik.yml
- name: Install systemd services
ansible.builtin.template:
src: "systemd/{{ file }}"
dest: "/etc/systemd/system/{{ file }}"
owner: root
group: root
mode: '0766'
notify: Reload systemd
loop:
- chill-cronjob@.service
- chill-cronjob@.timer
loop_control:
loop_var: file
- name: Install individual chill
ansible.builtin.include_tasks: chill/main.yml
with_items: "{{ chills }}"