Files
fedora-infra_ansible/roles/docker-distribution/tasks/main.yml
Michal Konecny 2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00

56 lines
1.3 KiB
YAML

---
# tasks file for docker-distribution
- name: Install docker-distribution
action: "{{ ansible_pkg_mgr }} name=docker-distribution state=present"
tags:
- docker-distribution
- name: Start and enable docker-distribution
service: name=docker-distribution state=started enabled=yes
tags:
- docker-distribution
- name: Configure docker-distribution
ansible.builtin.template:
src: config.yml.j2
dest: "{{ conf_path }}"
notify: Restart docker-distribution
tags:
- docker-distribution
- name: Ensure docker certs dir exists
ansible.builtin.file:
path: "{{ cert.dest_dir }}"
state: directory
when: tls.enabled
tags:
- docker-distribution
- debug: var=cert
tags:
- docker-distribution
- name: Install tls cert for docker
ansible.builtin.copy:
src: "{{ cert.cert_src }}"
dest: "{{ cert.dest_dir}}/{{ cert.cert_dest }}"
when: tls.enabled
tags:
- docker-distribution
- name: Install tls key for docker
ansible.builtin.copy:
src: "{{ cert.key_src }}"
dest: "{{ cert.dest_dir}}/{{ cert.key_dest }}"
when: tls.enabled
tags:
- docker-distribution
- name: Override the default syslog logrotate file
ansible.builtin.copy:
src=syslog-logrotate
dest=/etc/logrotate.d/rsyslog
tags:
- docker-distribution