ansible/playbooks/manual/rebuild/websites.yml
Ryan Lerch 462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

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

35 lines
1.1 KiB
YAML

---
- name: Force a rebuild of website content on the backend builder
hosts: sundries01*
user: root
become: true
become_user: apache
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Run syncStatic (this takes a while)...
ansible.builtin.command: /usr/local/bin/lock-wrapper syncStatic /usr/local/bin/syncStatic
- name: Tell the proxies to sync that freshness
hosts: proxies:proxies_stg
user: root
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Rsync each site in to place
ansible.builtin.command: /usr/bin/rsync --delete -a --no-owner --no-group sundries01::{{item}}/ /srv/web/{{item}}/
with_items:
- getfedora.org
- fedoracommunity.org
- developer.fedoraproject.org
- fedoraproject.org
- labs.fedoraproject.org
- mirrors.fedoraproject.org
- start.fedoraproject.org
- budget.fedoraproject.org