ansible/playbooks/include/proxies-fedorahosted.yml
Ryan Lerch 6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00

29 lines
1.1 KiB
YAML

---
- name: Fedorahosted. No more on our servers, but still in our hearts...
hosts: proxies_stg:proxies
user: root
gather_facts: true
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
- name: Ensure directories exists
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: '0755'
loop:
- '/etc/httpd/conf.d/fedorahosted.org'
- '/etc/httpd/conf.d/git.fedorahosted.org'
- name: Install special fedorahosted-redirects.conf with fedorahosted redirects
ansible.builtin.copy: src={{ files }}/httpd/fedorahosted-redirects.conf dest=/etc/httpd/conf.d/fedorahosted.org/fedorahosted-redirects.conf
- name: Install special git.fedorahosted-redirects.conf with git.fedorahosted redirects
ansible.builtin.copy: src={{ files }}/httpd/git.fedorahosted-redirects.conf dest=/etc/httpd/conf.d/git.fedorahosted.org/fedorahosted-redirects.conf