ansible/roles/git/make_checkout_seed/tasks/main.yml
Ryan Lerch 62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

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

28 lines
1 KiB
YAML

---
# tasklist for setting up the Git checkout seed
- name: Make sure packages needed are installed
package: name={{ item }} state=present
with_items:
- tar
- python2
- name: Create the destination directory
ansible.builtin.file: dest=/srv/git_seed owner=root group=root mode=0755 state=directory
when: env != 'staging'
- name: Install the production version of the script and schedule its execution
copy: src=make-git-checkout-seed.sh dest=/usr/local/bin/make-git-checkout-seed.sh mode=0755
when: env != 'staging'
- name: Install the alternative arch report script
copy: src=alternative_arch_report.py dest=/usr/local/bin/alternative_arch_report.py mode=0755
when: env != 'staging'
- name: Install cron job.
cron: >
name="make-git-checkout-seed" cron_file="ansible-make-git-checkout-seed"
minute=0 hour=2
user=root
job='/usr/local/bin/lock-wrapper make-git-checkout-seed "/usr/local/bin/make-git-checkout-seed.sh | /usr/local/bin/nag-once make-git-checkout-seed 1d 2>&1"'
when: env != 'staging'