mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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>
56 lines
1.3 KiB
YAML
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
|