ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
3c41882bb0
commit
47c68f478d
149 changed files with 324 additions and 324 deletions
playbooks
roles
abrt
ansible-server/tasks
apache/tasks
base/tasks
basessh/tasks
batcave/tasks
bkernel/tasks
blockerbugs/tasks
bodhi2
btrfs/tasks
bugzilla2fedmsg/tasks
check-compose/tasks
chrony/tasks
clamav/tasks
collectd
base/tasks
fedmsg-service/tasks
postgres/tasks
rabbitmq/tasks
web-service/tasks
copr
backend/tasks
base/tasks
certbot/tasks
dist_git/tasks
frontend/tasks
hypervisor/tasks
keygen/tasks
debug_env/tasks
distgit
docker-distribution/tasks
download/tasks
easyfix
fas2discourse/tasks
fasjson/tasks
fedmsg
fedora-budget/build/tasks
fedora-docs/build/tasks
fedora-web
fedora_nightlies/tasks
flatpak-cache/tasks
geoip-city-wsgi/proxy/tasks
git/server/tasks
github2fedmsg/tasks
grokmirror_mirror/tasks
haproxy
httpd
domainrewrite/tasks
mime-type/tasks
proxy/tasks
redirect/tasks
redirectmatch/tasks
reverseproxy/tasks
website/tasks
ipa/client/tasks
ipsilon/tasks
iscsi_client/tasks
keepalived/tasks
kerneltest/tasks
koji_builder/tasks
koji_hub/tasks
kojipkgs/tasks
letsencrypt/tasks
log-detective-backup/tasks
logging/tasks
mariadb_server/tasks
mediawiki/tasks
memcached/tasks
messaging/base/tasks
mirror_pagure_ansible/tasks
mirrormanager/mirrorlist_proxy/tasks
mote/tasks
nagios_client/tasks
nagios_server/tasks
|
@ -111,7 +111,7 @@
|
|||
- packages
|
||||
|
||||
# - name: easy access to the postgresql databases
|
||||
# template: src=$files/mailman/pgpass.j2 dest=/root/.pgpass
|
||||
# ansible.builtin.template: src=$files/mailman/pgpass.j2 dest=/root/.pgpass
|
||||
# owner=root group=root mode=0600
|
||||
|
||||
- name: start services
|
||||
|
|
|
@ -16,5 +16,5 @@
|
|||
- virt: command=info
|
||||
register: virt_info
|
||||
|
||||
- template: src={{files}}/virthost-lists.j2 dest=/tmp/virthost-lists.out
|
||||
- ansible.builtin.template: src={{files}}/virthost-lists.j2 dest=/tmp/virthost-lists.out
|
||||
delegate_to: localhost
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
tasks:
|
||||
- name: Copy the sql script to file
|
||||
template: src=fas-readonly.sql dest=/var/lib/pgsql/fas-readonly.sql
|
||||
ansible.builtin.template: src=fas-readonly.sql dest=/var/lib/pgsql/fas-readonly.sql
|
||||
|
||||
- name: Change permissions for relevant tables in the fas db
|
||||
ansible.builtin.shell: psql -1 -v ON_ERROR_STOP=1 fas2 </var/lib/pgsql/fas-readonly.sql
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
tasks:
|
||||
- name: Copy the sql script to file
|
||||
template: src=rollback.sql dest=/var/lib/pgsql/rollback.sql
|
||||
ansible.builtin.template: src=rollback.sql dest=/var/lib/pgsql/rollback.sql
|
||||
|
||||
- name: Rollback permissions for relevant tables in the fas db
|
||||
ansible.builtin.shell: psql -1 -v ON_ERROR_STOP=1 fas2 </var/lib/pgsql/rollback.sql
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
state: directory
|
||||
mode: "0755"
|
||||
- name: == OCP KVM provisioning == Importing generated Ignition files
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "/srv/web/infra/bigfiles/openshiftboot/{{ env }}/{{ item }}"
|
||||
dest: "/var/www/html/rhcos/{{ item }}"
|
||||
mode: "0755"
|
||||
|
@ -37,7 +37,7 @@
|
|||
- controlplane.ign
|
||||
- worker.ign
|
||||
- name: == OCP KVM provisioning == Creating treeinfo for virt-install --location
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "/srv/web/infra/bigfiles/openshiftboot/ocp-treeinfo.j2"
|
||||
dest: "/var/www/html/rhcos/.treeinfo"
|
||||
mode: "0644"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
pre_tasks:
|
||||
- name: copy the koji.conf file with the correct variables
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: koji.conf.j2
|
||||
dest: /etc/koji.conf
|
||||
owner: root
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
|
||||
tasks:
|
||||
- template: src=templates/koji-reset-staging.sql dest=/var/lib/pgsql/koji-reset-staging.sql
|
||||
- ansible.builtin.template: src=templates/koji-reset-staging.sql dest=/var/lib/pgsql/koji-reset-staging.sql
|
||||
tags:
|
||||
- db-sync-script
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
|
||||
tasks:
|
||||
# - template: src=templates/mailman-reset-staging.sql dest=/var/lib/pgsql/mailman-reset-staging.sql
|
||||
# - ansible.builtin.template: src=templates/mailman-reset-staging.sql dest=/var/lib/pgsql/mailman-reset-staging.sql
|
||||
- ansible.builtin.copy:
|
||||
src: /srv/web/infra/db-dumps/mailman.dump.xz
|
||||
dest: /var/tmp/mailman.dump.xz
|
||||
|
@ -49,7 +49,7 @@
|
|||
# - name: Fix the database
|
||||
# ansible.builtin.shell: psql -f /var/lib/pgsql/mailman-reset-staging.sql mailman
|
||||
|
||||
# - template: src=templates/hyperkitty-reset-staging.sql dest=/var/lib/pgsql/hyperkitty-reset-staging.sql
|
||||
# - ansible.builtin.template: src=templates/hyperkitty-reset-staging.sql dest=/var/lib/pgsql/hyperkitty-reset-staging.sql
|
||||
- ansible.builtin.copy:
|
||||
src: /srv/web/infra/db-dumps/hyperkitty.dump.xz
|
||||
dest: /var/tmp/hyperkitty.dump.xz
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
- config
|
||||
|
||||
- name: Install retrace ssl vhost
|
||||
template: src="httpd/retrace_ssl.conf.j2" dest="/etc/httpd/conf.d/retrace_ssl.conf"
|
||||
ansible.builtin.template: src="httpd/retrace_ssl.conf.j2" dest="/etc/httpd/conf.d/retrace_ssl.conf"
|
||||
when: letsencrypt is defined
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Provide /etc/faf/faf.conf
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: etc-faf-faf.conf.j2
|
||||
dest: /etc/faf/faf.conf
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
|||
when: faf_with_fedmsg|bool
|
||||
|
||||
- name: Provide configuration for fedora-messaging
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: etc-fedora-messaging-config.toml.j2
|
||||
dest: /etc/fedora-messaging/config.toml
|
||||
when: faf_with_fedmsg|bool
|
||||
|
|
|
@ -25,14 +25,14 @@
|
|||
when: faf_with_symboltransfer|bool
|
||||
|
||||
- name: Provide /etc/faf/plugins/web.conf
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: etc-faf-plugins-web.conf.j2
|
||||
dest: /etc/faf/plugins/web.conf
|
||||
notify:
|
||||
- restart httpd
|
||||
|
||||
- name: Put webfaf on root (/) if configured
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: etc-httpd-conf.d-faf-web.conf.j2
|
||||
dest: /etc/httpd/conf.d/faf-web.conf
|
||||
notify:
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
---
|
||||
- name: Configure retrace-server
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: etc-retrace-server.conf.j2
|
||||
dest: /etc/retrace-server/retrace-server.conf
|
||||
mode: "0644"
|
||||
notify: restart httpd
|
||||
|
||||
- name: Retrace-server http config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: retrace-server-httpd.conf.j2
|
||||
dest: /etc/httpd/conf.d/retrace-server-httpd.conf
|
||||
mode: "0644"
|
||||
notify: restart httpd
|
||||
|
||||
- name: Configure retrace-server hooks config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: etc-retrace-server-hooks.conf.j2
|
||||
dest: /etc/retrace-server/retrace-server-hooks.conf
|
||||
mode: "0644"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
- ansible-server
|
||||
|
||||
- name: Generate default ansible config
|
||||
template: src=ansible.cfg.j2 dest=/etc/ansible/ansible.cfg owner=root group=root mode=0644
|
||||
ansible.builtin.template: src=ansible.cfg.j2 dest=/etc/ansible/ansible.cfg owner=root group=root mode=0644
|
||||
tags:
|
||||
- ansible-server
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
- apache
|
||||
|
||||
- name: Add appserver headers.conf
|
||||
template: src="{{ files }}/httpd/headers.conf.j2" dest=/etc/httpd/conf.d/headers.conf
|
||||
ansible.builtin.template: src="{{ files }}/httpd/headers.conf.j2" dest=/etc/httpd/conf.d/headers.conf
|
||||
notify:
|
||||
- reload apache
|
||||
tags:
|
||||
|
@ -64,7 +64,7 @@
|
|||
- apache/headers
|
||||
|
||||
- name: Add appserver h2.conf
|
||||
template: src="{{ files }}/httpd/h2.conf.j2" dest=/etc/httpd/conf.d/h2.conf
|
||||
ansible.builtin.template: src="{{ files }}/httpd/h2.conf.j2" dest=/etc/httpd/conf.d/h2.conf
|
||||
when: ansible_distribution == 'Fedora'
|
||||
notify:
|
||||
- reload apache
|
||||
|
@ -74,7 +74,7 @@
|
|||
- h2
|
||||
|
||||
- name: Add apache_status location for collectd
|
||||
template: src="{{ files }}/httpd/apachestatus.conf" dest=/etc/httpd/conf.d/apachestatus.conf
|
||||
ansible.builtin.template: src="{{ files }}/httpd/apachestatus.conf" dest=/etc/httpd/conf.d/apachestatus.conf
|
||||
notify:
|
||||
- reload apache
|
||||
tags:
|
||||
|
|
|
@ -184,7 +184,7 @@
|
|||
- blocklist
|
||||
|
||||
- name: Iptables
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/sysconfig/iptables
|
||||
mode: '0600'
|
||||
|
@ -213,7 +213,7 @@
|
|||
when: baseiptables|bool
|
||||
|
||||
- name: Ip6tables
|
||||
template: src={{ item }} dest=/etc/sysconfig/ip6tables mode=0600 backup=yes
|
||||
ansible.builtin.template: src={{ item }} dest=/etc/sysconfig/ip6tables mode=0600 backup=yes
|
||||
with_first_found:
|
||||
- iptables/ip6tables.{{ datacenter }}
|
||||
- iptables/ip6tables.{{ inventory_hostname }}
|
||||
|
@ -422,7 +422,7 @@
|
|||
- common-scripts
|
||||
|
||||
- name: Drop in a little system_identification note
|
||||
template: src=system_identification dest=/etc/system_identification
|
||||
ansible.builtin.template: src=system_identification dest=/etc/system_identification
|
||||
tags:
|
||||
- config
|
||||
- base
|
||||
|
@ -481,7 +481,7 @@
|
|||
|
||||
# Set krb5 conf
|
||||
- name: Configure krb5
|
||||
template: src=krb5.conf.j2 dest=/etc/krb5.conf owner=root group=root mode=0644
|
||||
ansible.builtin.template: src=krb5.conf.j2 dest=/etc/krb5.conf owner=root group=root mode=0644
|
||||
when: not inventory_hostname.startswith('ipa')
|
||||
tags:
|
||||
- base
|
||||
|
@ -489,7 +489,7 @@
|
|||
- krb5
|
||||
|
||||
- name: Configure krb5 (IPA master)
|
||||
template: src=krb5.conf.master.j2 dest=/etc/krb5.conf owner=root group=root mode=0644
|
||||
ansible.builtin.template: src=krb5.conf.master.j2 dest=/etc/krb5.conf owner=root group=root mode=0644
|
||||
when: inventory_hostname.startswith('ipa')
|
||||
tags:
|
||||
- base
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
- base
|
||||
|
||||
- name: Sshd_config
|
||||
template: src=sshd_config dest=/etc/ssh/sshd_config mode=0600
|
||||
ansible.builtin.template: src=sshd_config dest=/etc/ssh/sshd_config mode=0600
|
||||
notify:
|
||||
- restart sshd
|
||||
tags:
|
||||
|
|
|
@ -122,7 +122,7 @@
|
|||
#
|
||||
|
||||
- name: Install the fedora-messaging configuration file
|
||||
template: src=batcave-messaging.toml dest=/etc/fedora-messaging/batcave-messaging.toml
|
||||
ansible.builtin.template: src=batcave-messaging.toml dest=/etc/fedora-messaging/batcave-messaging.toml
|
||||
tags:
|
||||
- batcave
|
||||
- config
|
||||
|
@ -358,7 +358,7 @@
|
|||
- httpd
|
||||
|
||||
- name: Install web server config for batcave (main config)
|
||||
template: src=infrastructure.fedoraproject.org.conf.j2 dest=/etc/httpd/conf.d/infrastructure.fedoraproject.org.conf mode=0644
|
||||
ansible.builtin.template: src=infrastructure.fedoraproject.org.conf.j2 dest=/etc/httpd/conf.d/infrastructure.fedoraproject.org.conf mode=0644
|
||||
notify:
|
||||
- reload httpd
|
||||
tags:
|
||||
|
@ -402,7 +402,7 @@
|
|||
#
|
||||
|
||||
- name: Install geoip download databases script
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: geoip-download-databases
|
||||
dest: /usr/local/bin/geoip-download-databases
|
||||
mode: "0700"
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
- bkernel
|
||||
|
||||
- name: Mock site-defaults.cfg
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: bkernel-site-defaults.cfg
|
||||
dest: /etc/mock/site-defaults.cfg
|
||||
mode: "0644"
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
- config
|
||||
|
||||
- name: Setup blockerbugs app settings file
|
||||
template: src=blockerbugs-settings.py.j2 dest=/etc/blockerbugs/settings.py mode=640
|
||||
ansible.builtin.template: src=blockerbugs-settings.py.j2 dest=/etc/blockerbugs/settings.py mode=640
|
||||
notify:
|
||||
- reload httpd
|
||||
tags:
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
- bodhi
|
||||
|
||||
- name: Put pungi configurations in place
|
||||
template: src="{{item}}" dest=/etc/bodhi/{{item}}
|
||||
ansible.builtin.template: src="{{item}}" dest=/etc/bodhi/{{item}}
|
||||
with_items:
|
||||
- pungi.module.conf.j2
|
||||
- pungi.rpm.conf.j2
|
||||
|
@ -105,7 +105,7 @@
|
|||
# cron job that syncs packages to koji
|
||||
#
|
||||
- name: Put owner-sync-pagure in place
|
||||
template: src=owner-sync-pagure.j2 dest=/usr/local/bin/owner-sync-pagure mode="0755"
|
||||
ansible.builtin.template: src=owner-sync-pagure.j2 dest=/usr/local/bin/owner-sync-pagure mode="0755"
|
||||
tags:
|
||||
- config
|
||||
- bodhi
|
||||
|
@ -148,7 +148,7 @@
|
|||
- koji-sync
|
||||
|
||||
- name: Put the koji sync listener config file in place
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: koji_sync_listener.toml
|
||||
dest: /etc/fedora-messaging/koji_sync_listener.toml
|
||||
when: env == "production"
|
||||
|
@ -286,8 +286,8 @@
|
|||
- cron
|
||||
|
||||
- name: Install logging.yaml
|
||||
template: >
|
||||
src="{{ roles_path }}/bodhi2/base/templates/logging.yaml.j2"
|
||||
ansible.builtin.template: >
|
||||
src="{{ roles_path }}/bodhi2/base/templates/logging.yaml"
|
||||
dest="/etc/bodhi/logging.yaml"
|
||||
owner=apache
|
||||
group=apache
|
||||
|
@ -297,7 +297,7 @@
|
|||
- bodhi
|
||||
|
||||
- name: Install production.ini
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ roles_path }}/bodhi2/base/templates/production.ini.j2"
|
||||
dest: /etc/bodhi/production.ini
|
||||
owner: apache
|
||||
|
@ -308,7 +308,7 @@
|
|||
- bodhi
|
||||
|
||||
- name: Install celeryconfig.py
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ roles_path }}/bodhi2/base/templates/celeryconfig.py.j2"
|
||||
dest: /etc/bodhi/celeryconfig.py
|
||||
owner: apache
|
||||
|
@ -319,7 +319,7 @@
|
|||
- bodhi
|
||||
|
||||
- name: Install fedora-messaging config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ roles_path }}/bodhi2/base/templates/fedora-messaging.toml.j2"
|
||||
dest: /etc/fedora-messaging/config.toml
|
||||
owner: apache
|
||||
|
@ -440,6 +440,6 @@
|
|||
- bodhi
|
||||
|
||||
- name: Set up koji profile
|
||||
template: src=kojiprofile.conf dest=/etc/koji.conf.d/bodhi.conf
|
||||
ansible.builtin.template: src=kojiprofile.conf dest=/etc/koji.conf.d/bodhi.conf
|
||||
tags:
|
||||
- bodhi
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
state: present
|
||||
|
||||
- name: Configure alembic
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: alembic.ini
|
||||
dest: /etc/bodhi/alembic.ini
|
||||
owner: bodhi
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
|
||||
- name: Configure btrfs-balance timer
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: schedule.conf.j2
|
||||
dest: /etc/systemd/system/btrfs-balance.timer.d/schedule.conf
|
||||
owner: root
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
- bugzilla2fedmsg
|
||||
|
||||
- name: Copy the configuration for bugzilla2fedmsg over
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=bugzilla2fedmsg.ini
|
||||
dest=/etc/moksha/production.ini
|
||||
owner=fedmsg
|
||||
|
|
|
@ -177,14 +177,14 @@
|
|||
- config
|
||||
|
||||
- name: Configure fedora-messaging check-compose consumer
|
||||
template: src=check-compose.toml.j2 dest=/etc/fedora-messaging/check-compose.toml owner=root group=root mode=0640
|
||||
ansible.builtin.template: src=check-compose.toml.j2 dest=/etc/fedora-messaging/check-compose.toml owner=root group=root mode=0640
|
||||
notify:
|
||||
- restart check-compose
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Install config file
|
||||
template: src=check-compose.conf.j2 dest=/etc/check-compose.conf mode=0644
|
||||
ansible.builtin.template: src=check-compose.conf.j2 dest=/etc/check-compose.conf mode=0644
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
- base
|
||||
|
||||
- name: Install chrony.conf
|
||||
template: src=chrony.conf.j2 dest=/etc/chrony.conf
|
||||
ansible.builtin.template: src=chrony.conf.j2 dest=/etc/chrony.conf
|
||||
notify:
|
||||
- restart chronyd
|
||||
tags:
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
ansible.builtin.copy: src=freshclam-cron dest=/etc/cron.daily/freshclam
|
||||
|
||||
- name: Setup the periodic clam scan script
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=clamscan.sh.j2
|
||||
dest=/usr/local/bin/clamscan.sh
|
||||
mode=0755
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
# install collected.conf
|
||||
- name: /etc/collectd.conf
|
||||
template: src=collectd.conf.j2 dest=/etc/collectd.conf
|
||||
ansible.builtin.template: src=collectd.conf.j2 dest=/etc/collectd.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
|
@ -46,7 +46,7 @@
|
|||
|
||||
# install collectd-network config
|
||||
- name: /etc/collectd.d/network.conf
|
||||
template: src=network-client.conf.j2 dest=/etc/collectd.d/network.conf
|
||||
ansible.builtin.template: src=network-client.conf.j2 dest=/etc/collectd.d/network.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Copy in /usr/local/bin/fedmsg-service-collectd
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=fedmsg-service-collectd.py
|
||||
dest="/usr/local/bin/fedmsg-service-collectd-{{ process }}"
|
||||
mode=0755
|
||||
|
@ -11,7 +11,7 @@
|
|||
notify: restart collectd
|
||||
|
||||
- name: Copy in /etc/collectd.d/fedmsg-service.conf
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=fedmsg-service.conf
|
||||
dest=/etc/collectd.d/{{ process }}.conf
|
||||
tags:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Copy in /usr/local/bin/collectd-postgres.sh
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=collectd-postgres.sh
|
||||
dest=/usr/local/bin/collectd-postgres.sh
|
||||
mode=0755
|
||||
|
@ -10,7 +10,7 @@
|
|||
notify: restart collectd
|
||||
|
||||
- name: Copy in /etc/collectd.d/postgres.conf
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=postgres.conf
|
||||
dest=/etc/collectd.d/postgres.conf
|
||||
tags:
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
- collectd
|
||||
|
||||
- name: Install collectd rabbitmq config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "rabbitmq.collectd.conf.j2"
|
||||
dest: "/etc/collectd.d/rabbitmq.conf"
|
||||
owner: root
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Copy in /usr/local/bin/web-service-collectd
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=web-service-collectd.py
|
||||
dest="/usr/local/bin/web-service-collectd-{{ site }}"
|
||||
mode=0755
|
||||
|
@ -10,7 +10,7 @@
|
|||
notify: restart collectd
|
||||
|
||||
- name: Copy in /etc/collectd.d/web-service.conf
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=web-service.conf
|
||||
dest=/etc/collectd.d/{{ site }}.conf
|
||||
tags:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
- {user: resalloc, homedir: /var/lib/resallocserver}
|
||||
|
||||
- name: Install aws credentials file
|
||||
template: src=aws-credentials
|
||||
ansible.builtin.template: src=aws-credentials
|
||||
dest="{{ item.homedir }}/.aws/credentials"
|
||||
owner={{ item.user }}
|
||||
group={{ item.user }}
|
||||
|
@ -23,7 +23,7 @@
|
|||
- {user: resalloc, homedir: /var/lib/resallocserver}
|
||||
|
||||
- name: Install aws config file
|
||||
template: src=aws-config
|
||||
ansible.builtin.template: src=aws-config
|
||||
dest="{{ item.homedir }}/.aws/config"
|
||||
owner={{ item.user }}
|
||||
group={{ item.user }}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
tags: copr_ping
|
||||
|
||||
- name: Install the ping script
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
dest: "{{ ping_homedir }}/{{ ping_script }}"
|
||||
src: "{{ ping_script }}.j2"
|
||||
owner: "{{ ping_user }}"
|
||||
|
@ -39,7 +39,7 @@
|
|||
tags: copr_ping
|
||||
|
||||
- name: Install the check script
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
dest: "/usr/bin/copr-ping-check.py"
|
||||
src: "copr-ping-check.py.j2"
|
||||
owner: "{{ ping_user }}"
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
ansible.builtin.copy: src="{{ private }}/files/copr/buildsys.priv" dest=/home/copr/.ssh/id_rsa owner=copr group=copr mode=600
|
||||
|
||||
- name: Setup copr user ssh config file
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "ssh_config.j2"
|
||||
dest: /home/copr/.ssh/config
|
||||
owner: copr
|
||||
|
@ -94,7 +94,7 @@
|
|||
|
||||
# setup webserver
|
||||
- name: Install lighttpd.conf
|
||||
template: src="lighttpd/lighttpd.conf" dest=/etc/lighttpd/lighttpd.conf owner=root group=root mode=0644
|
||||
ansible.builtin.template: src="lighttpd/lighttpd.conf" dest=/etc/lighttpd/lighttpd.conf owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart lighttpd
|
||||
tags:
|
||||
|
@ -102,7 +102,7 @@
|
|||
- lighttpd_config
|
||||
|
||||
- name: Add gzip content-encoding header by lua script
|
||||
template: src="lighttpd/content-encoding-gzip-if-exists.lua" dest=/etc/lighttpd/content-encoding-gzip-if-exists.lua owner=root group=root mode=0644
|
||||
ansible.builtin.template: src="lighttpd/content-encoding-gzip-if-exists.lua" dest=/etc/lighttpd/content-encoding-gzip-if-exists.lua owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart lighttpd
|
||||
tags:
|
||||
|
@ -132,7 +132,7 @@
|
|||
- config
|
||||
|
||||
- name: Install custom lighttpd template for directory listings
|
||||
template: src="lighttpd/dir-generator.php.j2" dest="/var/lib/copr/public_html/dir-generator.php" owner=copr group=copr mode=0755
|
||||
ansible.builtin.template: src="lighttpd/dir-generator.php.j2" dest="/var/lib/copr/public_html/dir-generator.php" owner=copr group=copr mode=0755
|
||||
|
||||
- name: Install resalloc CGI script
|
||||
ansible.builtin.copy:
|
||||
|
@ -160,7 +160,7 @@
|
|||
tags: logrotate
|
||||
|
||||
- name: Install custom logrotate config for lighttpd
|
||||
template: src="logrotate/lighttpd.j2" dest=/etc/logrotate.d/lighttpd owner=root group=root mode=644
|
||||
ansible.builtin.template: src="logrotate/lighttpd.j2" dest=/etc/logrotate.d/lighttpd owner=root group=root mode=644
|
||||
tags: logrotate
|
||||
|
||||
- name: Start webserver
|
||||
|
@ -239,7 +239,7 @@
|
|||
when: devel|bool
|
||||
|
||||
- name: Copy copr-be.conf
|
||||
template: src="copr-be.conf.j2" dest=/etc/copr/copr-be.conf owner=root group=copr mode=640
|
||||
ansible.builtin.template: src="copr-be.conf.j2" dest=/etc/copr/copr-be.conf owner=root group=copr mode=640
|
||||
notify:
|
||||
- restart copr-backend
|
||||
tags:
|
||||
|
@ -254,7 +254,7 @@
|
|||
- config
|
||||
|
||||
- name: Install messaging config
|
||||
template: src="fedora-messaging.conf.j2"
|
||||
ansible.builtin.template: src="fedora-messaging.conf.j2"
|
||||
dest=/etc/copr/msgbuses/fedora-messaging.conf
|
||||
owner=copr group=copr mode=0600
|
||||
when: copr_messaging
|
||||
|
@ -264,7 +264,7 @@
|
|||
- config
|
||||
|
||||
- name: Copy sign.conf
|
||||
template: src=sign.conf dest=/etc/sign.conf owner=root group=copr mode=640
|
||||
ansible.builtin.template: src=sign.conf dest=/etc/sign.conf owner=root group=copr mode=640
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
@ -313,7 +313,7 @@
|
|||
- clean_rh_subscriptions
|
||||
|
||||
- name: Install cleanup-unused-vms script
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}"
|
||||
dest: /usr/local/bin/{{ item }}
|
||||
mode: "0755"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
when: env == "production"
|
||||
|
||||
- name: Install Pulp config file
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: pulp-cli.toml
|
||||
dest: "/home/copr/.config/pulp/cli.toml"
|
||||
owner: copr
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
- provision_config
|
||||
|
||||
- name: Resalloc, scripts
|
||||
template: src="resalloc/{{ item }}.j2" dest="/var/lib/resallocserver/resalloc_provision/{{ item }}"
|
||||
ansible.builtin.template: src="resalloc/{{ item }}.j2" dest="/var/lib/resallocserver/resalloc_provision/{{ item }}"
|
||||
mode=755
|
||||
with_items:
|
||||
- vm-delete
|
||||
|
@ -147,7 +147,7 @@
|
|||
mode: "0600"
|
||||
|
||||
- name: Resalloc, ssh config file
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "ssh_config.j2"
|
||||
dest: /var/lib/resallocserver/.ssh/config
|
||||
owner: resalloc
|
||||
|
@ -158,7 +158,7 @@
|
|||
- provision_config
|
||||
|
||||
- name: Resalloc, server config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "resalloc/{{ item }}"
|
||||
dest: "/etc/resallocserver/{{ item }}"
|
||||
mode: "0640"
|
||||
|
@ -179,7 +179,7 @@
|
|||
when: not services_disabled|bool
|
||||
|
||||
- name: Shortcuts around resalloc-aws-start
|
||||
template: src="{{ roles_path }}/copr/backend/templates/provision/copr-resalloc-aws-new.j2"
|
||||
ansible.builtin.template: src="{{ roles_path }}/copr/backend/templates/provision/copr-resalloc-aws-new.j2"
|
||||
dest="/usr/local/bin/copr-resalloc-aws-new-{{ item }}"
|
||||
mode=0755
|
||||
with_items:
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
- provision_config
|
||||
|
||||
- name: Resalloc, generate vars.yml file
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ roles_path }}/copr/backend/templates/provision/{{ item }}"
|
||||
dest: "{{ provision_directory }}/{{ item }}"
|
||||
with_items:
|
||||
|
@ -32,7 +32,7 @@
|
|||
- provision_config
|
||||
|
||||
- name: Templated provision scripts
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ roles_path }}/copr/backend/templates/provision/{{ item }}"
|
||||
dest: "{{ provision_directory }}/{{ item }}"
|
||||
mode: "0755"
|
||||
|
@ -45,7 +45,7 @@
|
|||
- cloud_vars is not defined
|
||||
|
||||
- name: Templated provision scripts
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ roles_path }}/copr/backend/templates/provision/{{ item }}"
|
||||
dest: "{{ provision_directory }}/{{ item }}"
|
||||
mode: "0755"
|
||||
|
@ -57,7 +57,7 @@
|
|||
- cloud_vars is defined and cloud_vars
|
||||
|
||||
- name: Generate cloud-oriented vars files
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ roles_path }}/copr/backend/templates/provision/{{ item }}"
|
||||
dest: "{{ provision_directory }}/{{ item }}"
|
||||
with_items:
|
||||
|
@ -68,7 +68,7 @@
|
|||
- cloud_vars is defined and cloud_vars
|
||||
|
||||
- name: Put copr-rpmbuild configuration file into the provision subdir
|
||||
template: src="{{ roles_path }}/copr/backend/templates/provision/copr-rpmbuild/main.ini.j2"
|
||||
ansible.builtin.template: src="{{ roles_path }}/copr/backend/templates/provision/copr-rpmbuild/main.ini.j2"
|
||||
dest="{{ provision_directory }}/files/main.ini"
|
||||
tags:
|
||||
- provision_config
|
||||
|
@ -76,7 +76,7 @@
|
|||
when: "'copr_hypervisor' not in group_names"
|
||||
|
||||
- name: Put rpkg configuration file into the provision subdir
|
||||
template: src="{{ roles_path }}/copr/backend/templates/provision/rpkg.conf.j2"
|
||||
ansible.builtin.template: src="{{ roles_path }}/copr/backend/templates/provision/rpkg.conf.j2"
|
||||
dest="{{ provision_directory }}/files/rpkg.conf"
|
||||
tags:
|
||||
- provision_config
|
||||
|
@ -88,7 +88,7 @@
|
|||
- provision_config
|
||||
|
||||
- name: Install the Oregon State University OpenStack token file on BE/HV
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ roles_path }}/copr/backend/templates/provision/rc-osuosl.sh.j2"
|
||||
dest: "{{ provision_directory }}/.rc-osuosl.sh"
|
||||
owner: "{{ provision_user }}"
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
# tags: ipv6_config
|
||||
|
||||
- name: Install nrpe checks
|
||||
template: src=copr_nrpe.cfg
|
||||
ansible.builtin.template: src=copr_nrpe.cfg
|
||||
dest=/etc/nrpe.d/copr_nrpe.cfg
|
||||
notify:
|
||||
- restart nrpe
|
||||
|
|
|
@ -12,13 +12,13 @@
|
|||
- certbot
|
||||
|
||||
- name: Install certbot config
|
||||
template: src=certbot.j2 dest=/etc/sysconfig/certbot
|
||||
ansible.builtin.template: src=certbot.j2 dest=/etc/sysconfig/certbot
|
||||
mode=0644
|
||||
tags:
|
||||
- certbot
|
||||
|
||||
- name: Install certbot deploy script
|
||||
template: src={{ letsencrypt.predefined_deploy_script }}
|
||||
ansible.builtin.template: src={{ letsencrypt.predefined_deploy_script }}
|
||||
dest=/usr/libexec/auto-certbot-deploy
|
||||
mode=0755
|
||||
when: letsencrypt.predefined_deploy_script is defined
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
- /var/log/copr-dist-git/
|
||||
|
||||
- name: Install config for copr-dist-git
|
||||
template: src=copr-dist-git.conf.j2 dest=/etc/copr/copr-dist-git.conf mode=0644
|
||||
ansible.builtin.template: src=copr-dist-git.conf.j2 dest=/etc/copr/copr-dist-git.conf mode=0644
|
||||
tags:
|
||||
- config
|
||||
- copr_infrastructure_password
|
||||
|
@ -79,7 +79,7 @@
|
|||
- reload httpd
|
||||
|
||||
- name: Install /etc/httpd/conf.d/ssl.conf
|
||||
template: src="ssl.conf.j2" dest="/etc/httpd/conf.d/ssl.conf" owner=root group=root mode=0644
|
||||
ansible.builtin.template: src="ssl.conf.j2" dest="/etc/httpd/conf.d/ssl.conf" owner=root group=root mode=0644
|
||||
notify:
|
||||
- reload httpd
|
||||
|
||||
|
@ -92,7 +92,7 @@
|
|||
- config
|
||||
|
||||
- name: Install cgitrc
|
||||
template: src="cgitrc" dest="/etc/cgitrc" owner=root group=root mode=0644
|
||||
ansible.builtin.template: src="cgitrc" dest="/etc/cgitrc" owner=root group=root mode=0644
|
||||
|
||||
- name: Allow httpd to run cgit
|
||||
seboolean: name=httpd_enable_cgi state=true persistent=true
|
||||
|
@ -135,7 +135,7 @@
|
|||
ansible.builtin.file: path=/home/copr-dist-git/.config state=directory
|
||||
|
||||
- name: Install .config/copr for copr-dist-git user (required for pruning)
|
||||
template: src="copr.conf" dest="/home/copr-dist-git/.config/copr" owner=copr-dist-git group=copr-dist-git
|
||||
ansible.builtin.template: src="copr.conf" dest="/home/copr-dist-git/.config/copr" owner=copr-dist-git group=copr-dist-git
|
||||
|
||||
- name: Install the helper cron scripts
|
||||
ansible.builtin.copy:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Copy apache files to conf.d (templates)
|
||||
template: src="httpd/{{ item }}" dest="/etc/httpd/conf.d/{{ item }}"
|
||||
ansible.builtin.template: src="httpd/{{ item }}" dest="/etc/httpd/conf.d/{{ item }}"
|
||||
with_items:
|
||||
- "coprs.conf"
|
||||
notify:
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
owner=copr-fe mode=755
|
||||
|
||||
- name: Install copr configs
|
||||
template: src="copr.conf" dest=/etc/copr/copr.conf mode=600
|
||||
ansible.builtin.template: src="copr.conf" dest=/etc/copr/copr.conf mode=600
|
||||
notify:
|
||||
- reload httpd
|
||||
- restart copr-fe-fedora-messaging-reader
|
||||
|
@ -179,7 +179,7 @@
|
|||
ansible.builtin.file: path=/etc/fedora-messaging state=directory
|
||||
|
||||
- name: Install fedora messaging config for Copr
|
||||
template: src="fedora-messaging/copr_messaging.toml" dest="/etc/fedora-messaging/copr_messaging.toml"
|
||||
ansible.builtin.template: src="fedora-messaging/copr_messaging.toml" dest="/etc/fedora-messaging/copr_messaging.toml"
|
||||
notify:
|
||||
- restart copr-fe-fedora-messaging-reader
|
||||
tags:
|
||||
|
@ -225,7 +225,7 @@
|
|||
dnf: name=nrpe state=present
|
||||
|
||||
- name: Install the check script
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
dest: "/usr/bin/copr-cdn-check.py"
|
||||
src: "copr-cdn-check.py.j2"
|
||||
group: "nagios"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
- config
|
||||
|
||||
- name: Set up some cronjobs to backup databases as configured
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src="{{ files }}/../roles/postgresql_server/templates/cron-backup-database"
|
||||
dest="/etc/cron.d/cron-backup-database-{{ item }}"
|
||||
with_items:
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
tags: libvirtd
|
||||
|
||||
- name: Copy image pool config file to host
|
||||
template: src=libvirt-pool-images.xml
|
||||
ansible.builtin.template: src=libvirt-pool-images.xml
|
||||
dest=/root/.tmp-ansible-file.xml
|
||||
when: libvirt_pool_exists.changed
|
||||
tags: libvirtd
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
- config
|
||||
|
||||
- name: Put config for signd
|
||||
template: src="sign.conf" dest="/etc/sign.conf"
|
||||
ansible.builtin.template: src="sign.conf" dest="/etc/sign.conf"
|
||||
notify:
|
||||
- restart obs-signd
|
||||
tags:
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
#
|
||||
---
|
||||
- name: Dump all ansible vars
|
||||
template: src=dumpall.j2 dest=/tmp/debug_env.out
|
||||
ansible.builtin.template: src=dumpall.j2 dest=/tmp/debug_env.out
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
# - config
|
||||
|
||||
# - name: Install stunnel.conf
|
||||
# template: src={{ item.file }}
|
||||
# ansible.builtin.template: src={{ item.file }}
|
||||
# dest={{ item.dest }}
|
||||
# owner=root group=root mode=0600
|
||||
# with_items:
|
||||
|
@ -120,7 +120,7 @@
|
|||
- pagure
|
||||
|
||||
- name: Copy sundry pagure configuration
|
||||
template: src={{ item.file }}
|
||||
ansible.builtin.template: src={{ item.file }}
|
||||
dest={{ item.location }}/{{ item.file }}
|
||||
owner=pagure group=postfix mode=0640
|
||||
with_items:
|
||||
|
@ -140,7 +140,7 @@
|
|||
- restart apache
|
||||
|
||||
- name: Pagure configuration for the hooks
|
||||
template: src={{ item.file }}
|
||||
ansible.builtin.template: src={{ item.file }}
|
||||
dest={{ item.location }}/{{ item.file }}
|
||||
owner=pagure group=packager mode=0640
|
||||
with_items:
|
||||
|
@ -195,7 +195,7 @@
|
|||
- pagure
|
||||
|
||||
- name: Install the apache configuration file
|
||||
template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }}
|
||||
ansible.builtin.template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }}
|
||||
owner=root group=root mode=0644
|
||||
with_items:
|
||||
- z_pagure.conf
|
||||
|
@ -207,7 +207,7 @@
|
|||
- restart apache
|
||||
|
||||
- name: Install the wsgi file
|
||||
template: src={{ item }}
|
||||
ansible.builtin.template: src={{ item }}
|
||||
dest=/var/www/{{ item }}
|
||||
owner=pagure group=pagure mode=0644
|
||||
with_items:
|
||||
|
@ -327,7 +327,7 @@
|
|||
- fedora-messaging
|
||||
|
||||
- name: Install the configuration file for fedora-messaging
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src=fedora-messaging.toml
|
||||
dest=/etc/fedora-messaging/config.toml
|
||||
tags:
|
||||
|
|
|
@ -28,14 +28,14 @@
|
|||
- distgit
|
||||
|
||||
- name: Install the mod_auth_openidc configuration
|
||||
template: src=auth_openidc.conf dest=/etc/httpd/conf.d/auth_openidc.conf
|
||||
ansible.builtin.template: src=auth_openidc.conf dest=/etc/httpd/conf.d/auth_openidc.conf
|
||||
notify:
|
||||
- reload httpd
|
||||
tags:
|
||||
- distgit
|
||||
|
||||
- name: Install the http push configuration
|
||||
template: src=httppush.conf dest=/etc/httpd/conf.d/httpush.conf
|
||||
ansible.builtin.template: src=httppush.conf dest=/etc/httpd/conf.d/httpush.conf
|
||||
notify:
|
||||
- reload httpd
|
||||
tags:
|
||||
|
@ -236,7 +236,7 @@
|
|||
# -- Lookaside Cache -------------------------------------
|
||||
# This is the annex to Dist Git, where we host source tarballs.
|
||||
- name: Install the Lookaside Cache httpd configs
|
||||
template: src={{item}} dest=/etc/httpd/conf.d/dist-git/{{item}}
|
||||
ansible.builtin.template: src={{item}} dest=/etc/httpd/conf.d/dist-git/{{item}}
|
||||
with_items:
|
||||
- lookaside.conf
|
||||
- lookaside-upload.conf
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
- docker-distribution
|
||||
|
||||
- name: Configure docker-distribution
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: config.yml.j2
|
||||
dest: "{{ conf_path }}"
|
||||
notify: restart docker-distribution
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
- selinux
|
||||
|
||||
- name: /etc/motd_fedora
|
||||
template: src=rsync/motd_fedora.j2 dest=/etc/motd_fedora
|
||||
ansible.builtin.template: src=rsync/motd_fedora.j2 dest=/etc/motd_fedora
|
||||
|
||||
- name: Configure logrotate for /var/log/rsyncd-fedora.log
|
||||
ansible.builtin.copy: src=logrotate-rsync-fedora dest=/etc/logrotate.d/rsync-fedora
|
||||
|
@ -65,7 +65,7 @@
|
|||
ansible.builtin.copy: src="{{private}}/files/httpd/wildcard-2024.fedoraproject.org.intermediate.cert" dest=/etc/pki/tls/certs/wildcard-2024.fedoraproject.org.intermediate.cert owner=root group=root mode=0644
|
||||
|
||||
- name: Configure httpd dl main conf
|
||||
template: src=httpd/dl.fedoraproject.org.conf dest=/etc/httpd/conf.d/dl.fedoraproject.org.conf
|
||||
ansible.builtin.template: src=httpd/dl.fedoraproject.org.conf dest=/etc/httpd/conf.d/dl.fedoraproject.org.conf
|
||||
tags:
|
||||
- httpd
|
||||
- config
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
- easyfix
|
||||
|
||||
- name: Install the easyfix script
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=gather_easyfix.py dest=/usr/local/bin/gather_easyfix.py
|
||||
owner=root group=root mode=0755
|
||||
tags:
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
- easyfix/proxy
|
||||
|
||||
- name: Put the proxy config in place
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=gather-easyfix.conf
|
||||
dest=/etc/httpd/conf.d/{{website}}/gather-easyfix.conf
|
||||
owner=root group=root mode=0644
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
# generate the templates for project to be created
|
||||
- name: Create the templates
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "secret-discourse-apikey.yml"
|
||||
dest: "/root/ocp4/openshift-apps/fas2discourse-operator/secret-discourse-apikey.yml"
|
||||
mode: "0770"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
# generate the templates for project to be created
|
||||
- name: Copy the templates to the host
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "secret-keytab.yml"
|
||||
dest: "/root/ocp4/openshift-apps/fas2discourse-operator/secret-keytab.yml"
|
||||
mode: "0770"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
# generate the templates for project to be created
|
||||
- name: Create the templates
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "namespace.yml"
|
||||
dest: "/root/ocp4/openshift-apps/fas2discourse-operator/namespace.yml"
|
||||
mode: "0770"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
- fasjson
|
||||
|
||||
- name: Fasjson-aliases script
|
||||
template: src=fasjson-aliases.j2 dest=/usr/local/bin/fasjson-aliases owner=root mode=0755
|
||||
ansible.builtin.template: src=fasjson-aliases.j2 dest=/usr/local/bin/fasjson-aliases owner=root mode=0755
|
||||
tags:
|
||||
- config
|
||||
- fasjson
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
# *conditionally* restart these services, only if they are installed on the
|
||||
# system.
|
||||
- name: Setup basic /etc/fedmsg.d/ contents for internal hosts
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src="{{ item }}.j2"
|
||||
dest="/etc/fedmsg.d/{{ item }}"
|
||||
owner=root
|
||||
|
@ -100,7 +100,7 @@
|
|||
- restart fedmsg-relay
|
||||
|
||||
- name: Dynamically generate policy from group/host vars.
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src="{{ item }}.j2"
|
||||
dest="/etc/fedmsg.d/{{ item }}"
|
||||
owner=root
|
||||
|
@ -122,7 +122,7 @@
|
|||
- restart fedmsg-relay
|
||||
|
||||
- name: Setup basic /etc/fedmsg.d/ contents for firewalled/external hosts
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src="{{ item }}.j2"
|
||||
dest="/etc/fedmsg.d/{{ item }}"
|
||||
owner=root
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
- fedmsg/proxy
|
||||
|
||||
- name: Put the proxy config in place
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=fedmsg.conf
|
||||
dest=/etc/httpd/conf.d/{{website}}/fedmsg.conf
|
||||
owner=root group=root mode=0644
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
- fedmsg/gateway/slave
|
||||
|
||||
- name: Install /etc/fedmsg.d/fedmsg-gateway-slave.py
|
||||
template: src={{ item.file }}
|
||||
ansible.builtin.template: src={{ item.file }}
|
||||
dest={{ item.dest }}
|
||||
owner=root group=root mode=0644
|
||||
with_items:
|
||||
|
@ -86,7 +86,7 @@
|
|||
- fedmsg/gateway/slave
|
||||
|
||||
- name: Install stunnel.conf
|
||||
template: src={{ item.file }}
|
||||
ansible.builtin.template: src={{ item.file }}
|
||||
dest={{ item.dest }}
|
||||
owner=root group=root mode=0600
|
||||
with_items:
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
- fedmsg/hub
|
||||
|
||||
- name: Install systemd config file
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: fedmsg-hub-systemd.conf.j2
|
||||
dest: "/etc/systemd/system/{{ item }}.service.d/systemd.conf"
|
||||
with_items:
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
- fedmsgmonitor
|
||||
|
||||
- name: Setup fedmsg-irc config file
|
||||
template: src=ircbot.py dest=/etc/fedmsg.d/ircbot.py
|
||||
ansible.builtin.template: src=ircbot.py dest=/etc/fedmsg.d/ircbot.py
|
||||
tags:
|
||||
- config
|
||||
- fedmsg/irc
|
||||
|
@ -30,7 +30,7 @@
|
|||
- restart fedmsg-irc
|
||||
|
||||
- name: Setup fas credentials config file
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=fas-credentials.py
|
||||
dest=/etc/fedmsg.d/fas-credentials.py
|
||||
mode=0640
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- ansible.builtin.file: dest=/srv/web/budget.fedoraproject.org state=directory
|
||||
|
||||
- template: >
|
||||
- ansible.builtin.template: >
|
||||
src=budget-sync.j2 dest=/usr/local/bin/budget-sync
|
||||
owner=root group=root mode=0755
|
||||
tags:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- template: >
|
||||
- ansible.builtin.template: >
|
||||
src=docs-sync.j2 dest=/usr/local/bin/docs-sync
|
||||
owner=root group=root mode=0755
|
||||
tags:
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
- fedoraproject_s3_bucket_name is defined
|
||||
|
||||
- name: Create fedoraproject-sync script
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: fedoraproject-sync
|
||||
dest: /usr/local/sbin/fedoraproject-sync
|
||||
mode: "0700"
|
||||
|
@ -68,7 +68,7 @@
|
|||
- fedora-web/google-site-verification
|
||||
|
||||
- name: And one template (for {{website}})
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{item}}
|
||||
owner=root group=root mode=0644
|
||||
with_items:
|
||||
|
@ -107,7 +107,7 @@
|
|||
- fedora-web/google-site-verification
|
||||
|
||||
- name: And, copy over a template for browserid
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=browserid.fedoraproject.org dest=/srv/web/browserid.fedoraproject.org
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
- fedora-web/registry
|
||||
|
||||
- name: Copy in the sync-registry-index cronjob
|
||||
template: src=cron-sync-registry-index dest=/etc/cron.d/sync-registry-index
|
||||
ansible.builtin.template: src=cron-sync-registry-index dest=/etc/cron.d/sync-registry-index
|
||||
tags:
|
||||
- fedora-web
|
||||
- fedora-web/registry
|
||||
|
|
|
@ -143,7 +143,7 @@
|
|||
- config
|
||||
|
||||
- name: Configure fedora-messaging fedora_nightlies
|
||||
template: src=fedora_nightlies.toml.j2 dest=/etc/fedora-messaging/fedora_nightlies.toml owner=root group=root mode=0640
|
||||
ansible.builtin.template: src=fedora_nightlies.toml.j2 dest=/etc/fedora-messaging/fedora_nightlies.toml owner=root group=root mode=0640
|
||||
notify:
|
||||
- restart fedora_nightlies
|
||||
tags:
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
- config
|
||||
|
||||
- name: Install squid configuration file
|
||||
template: src=squid.conf dest=/etc/squid/squid.conf owner=squid group=squid
|
||||
ansible.builtin.template: src=squid.conf dest=/etc/squid/squid.conf owner=squid group=squid
|
||||
tags:
|
||||
- flatpak-cache
|
||||
- config
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Copy in the proxy conf
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=geoip-city-wsgi-proxy.conf
|
||||
dest=/etc/httpd/conf.d/{{website}}/geoip-city-wsgi-proxy.conf
|
||||
owner=root group=root mode=0644
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
tags: git/server
|
||||
|
||||
- name: Configure git daemon
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src="git@.service.j2"
|
||||
dest="/usr/lib/systemd/system/git@.service"
|
||||
mode=0644
|
||||
|
@ -25,7 +25,7 @@
|
|||
tags: git/server
|
||||
|
||||
- name: Configure git daemon
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src="git@.service.j2"
|
||||
dest="/usr/lib/systemd/system/git@.service"
|
||||
mode=0644
|
||||
|
@ -39,7 +39,7 @@
|
|||
tags: git/server
|
||||
|
||||
- name: Install the xinetd config file
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src="git.j2"
|
||||
dest="/etc/xinetd.d/git"
|
||||
mode=0644
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
- github2fedmsg
|
||||
|
||||
- name: Copy github2fedmsg app configuration
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{ item }} dest="/etc/github2fedmsg/{{ item }}"
|
||||
owner=apache group=apache mode=0600
|
||||
with_items:
|
||||
|
@ -45,7 +45,7 @@
|
|||
- restart apache
|
||||
|
||||
- name: Copy github2fedmsg httpd config
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{ item }} dest="/etc/httpd/conf.d/{{ item }}"
|
||||
owner=apache group=apache mode=0644
|
||||
with_items:
|
||||
|
|
|
@ -22,16 +22,16 @@
|
|||
- grokmirror-mirror
|
||||
|
||||
- name: Install grokmirror config file from template
|
||||
template: src=grokmirror.conf dest={{grokmirror_topdir}}/grokmirror.conf owner=root group=root mode=644
|
||||
ansible.builtin.template: src=grokmirror.conf dest={{grokmirror_topdir}}/grokmirror.conf owner=root group=root mode=644
|
||||
tags:
|
||||
- grokmirror-mirror
|
||||
|
||||
- name: Install grokmirror repos cron job
|
||||
template: src=grokmirror.cron dest=/etc/cron.d/grokmirror.cron owner=root group=root mode=644
|
||||
ansible.builtin.template: src=grokmirror.cron dest=/etc/cron.d/grokmirror.cron owner=root group=root mode=644
|
||||
tags:
|
||||
- grokmirror-mirror
|
||||
|
||||
- name: Install grokmirror fsck cron job
|
||||
template: src=grokfsck.cron dest=/etc/cron.d/grokfsck.cron owner=root group=root mode=644
|
||||
ansible.builtin.template: src=grokfsck.cron dest=/etc/cron.d/grokfsck.cron owner=root group=root mode=644
|
||||
tags:
|
||||
- grokmirror-mirror
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
- haproxy
|
||||
- haproxy/rewrite
|
||||
|
||||
- template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf
|
||||
- ansible.builtin.template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf
|
||||
notify:
|
||||
- reload httpd
|
||||
tags:
|
||||
|
@ -13,7 +13,7 @@
|
|||
- haproxy/rewrite
|
||||
when: not inventory_hostname.startswith('proxy')
|
||||
|
||||
- template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf
|
||||
- ansible.builtin.template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
tags:
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
- haproxy
|
||||
|
||||
- name: Install haproxy/cfg
|
||||
template: src={{ item.file }}
|
||||
ansible.builtin.template: src={{ item.file }}
|
||||
dest={{ item.dest }}
|
||||
owner=root group=root mode=0600
|
||||
with_items:
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
---
|
||||
- name: Copy in domain rewrite for {{destname}} ({{website}}{{path}})
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{item}}
|
||||
dest=/etc/httpd/conf.d/{{website}}/{{destname}}-rewrite.conf
|
||||
owner=root
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- template: >
|
||||
- ansible.builtin.template: >
|
||||
src=mime-types.conf dest=/etc/httpd/conf.d/{{website}}/mime-types.conf
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
- reload proxyhttpd
|
||||
|
||||
- name: Copy in the main httpd.conf file for proxy nodes
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=httpd.conf.j2 dest=/etc/httpd/conf/httpd.conf
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
|
@ -24,7 +24,7 @@
|
|||
- httpd/proxy
|
||||
|
||||
- name: Copy over some basic configs into /etc/httpd/conf.d/
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{item}} dest=/etc/httpd/conf.d/{{item}}
|
||||
owner=root group=root mode=0644
|
||||
with_items:
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# This is the only real work we do.
|
||||
---
|
||||
- name: Copy over httpd redirect file for {{shortname}}
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{item}}
|
||||
dest=/etc/httpd/conf.d/{{website}}/{{shortname}}-redirect.conf
|
||||
mode=0644
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
mode: '0755'
|
||||
|
||||
- name: Copy over httpd redirectmatch file for {{shortname}}
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=redirectmatch.conf
|
||||
dest=/etc/httpd/conf.d/{{website}}/{{shortname}}-redirectmatch.conf
|
||||
mode=0644
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
---
|
||||
- name: Copy in ProxyPassReverse for {{destname}} ({{website}}{{remotepath}})
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{item}}
|
||||
dest=/etc/httpd/conf.d/{{website}}/{{destname}}.conf
|
||||
owner=root
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
- letsencrypt
|
||||
|
||||
- name: Copy over primary template for {{site_name}}
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=website.conf
|
||||
dest=/etc/httpd/conf.d/{{site_name}}.conf
|
||||
owner=root
|
||||
|
@ -45,7 +45,7 @@
|
|||
- sslciphers
|
||||
|
||||
- name: Copy over some subordinate templates for {{site_name}}
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{item}}.conf
|
||||
dest=/etc/httpd/conf.d/{{site_name}}/{{item}}.conf
|
||||
owner=root
|
||||
|
@ -77,7 +77,7 @@
|
|||
- robots
|
||||
|
||||
- name: And lastly, the robots.txt file
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src={{item}}
|
||||
dest=/srv/web/{{site_name}}-robots.txt
|
||||
mode=0644
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
run_once: yes
|
||||
|
||||
- name: Ensure that nss knows to skip certain users (f41/rhel)
|
||||
template: src=fedora-nss-ignore.conf.j2 dest=/etc/sssd/conf.d/fedora-nss-ignore.conf mode=600 owner=sssd group=sssd
|
||||
ansible.builtin.template: src=fedora-nss-ignore.conf.j2 dest=/etc/sssd/conf.d/fedora-nss-ignore.conf mode=600 owner=sssd group=sssd
|
||||
tags:
|
||||
- ipa/client
|
||||
- config
|
||||
|
@ -85,7 +85,7 @@
|
|||
when: ansible_distribution_major_version|int >= 41 or ansible_distribution == 'RedHat'
|
||||
|
||||
- name: Ensure that nss knows to skip certain users (f40)
|
||||
template: src=fedora-nss-ignore.conf.j2 dest=/etc/sssd/conf.d/fedora-nss-ignore.conf mode=600 owner=root group=root
|
||||
ansible.builtin.template: src=fedora-nss-ignore.conf.j2 dest=/etc/sssd/conf.d/fedora-nss-ignore.conf mode=600 owner=root group=root
|
||||
tags:
|
||||
- ipa/client
|
||||
- config
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
- config
|
||||
|
||||
- name: Copy ipsilon configuration
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "ipsilon.conf"
|
||||
dest: "/etc/ipsilon/root/ipsilon.conf"
|
||||
owner: ipsilon
|
||||
|
@ -119,7 +119,7 @@
|
|||
- restart apache
|
||||
|
||||
- name: Copy ipsilon admin configuration
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "configuration.conf"
|
||||
dest: "/etc/ipsilon/root/configuration.conf"
|
||||
owner: ipsilon
|
||||
|
@ -146,7 +146,7 @@
|
|||
- restart apache
|
||||
|
||||
- name: Copy ipsilon httpd config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "httpd.conf.j2"
|
||||
dest: /etc/ipsilon/root/idp.conf
|
||||
tags:
|
||||
|
@ -197,7 +197,7 @@
|
|||
- ipsilon
|
||||
|
||||
- name: Copy saml2 metadata script
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: prepare-saml2-metadata.py
|
||||
dest: /usr/local/bin/prepare-saml2-metadata
|
||||
owner: root
|
||||
|
@ -258,7 +258,7 @@
|
|||
- ipsilon
|
||||
|
||||
- name: Copy SSSd configuration
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: sssd.conf
|
||||
dest: /etc/sssd/sssd.conf
|
||||
owner: root
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
- config
|
||||
|
||||
- name: Setup initiatorname.iscsi
|
||||
template: src=initiatorname.iscsi.j2 dest=/etc/iscsi/initiatorname.iscsi
|
||||
ansible.builtin.template: src=initiatorname.iscsi.j2 dest=/etc/iscsi/initiatorname.iscsi
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
- keepalived
|
||||
|
||||
- name: Install keepalived template
|
||||
template: src=keepalived.conf.j2 dest=/etc/keepalived/keepalived.conf
|
||||
ansible.builtin.template: src=keepalived.conf.j2 dest=/etc/keepalived/keepalived.conf
|
||||
tags:
|
||||
- config
|
||||
- keepalived
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
- kerneltest
|
||||
|
||||
- name: Install all the configuration file of kerneltest
|
||||
template: src={{ item.file }}
|
||||
ansible.builtin.template: src={{ item.file }}
|
||||
dest={{ item.location }}/{{ item.file }}
|
||||
owner=apache group=apache mode=0600
|
||||
with_items:
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
- koji_builder
|
||||
|
||||
- name: Configure flatpak-builder plugin
|
||||
template: src=flatpak.conf dest=/etc/kojid/plugins/flatpak.conf
|
||||
ansible.builtin.template: src=flatpak.conf dest=/etc/kojid/plugins/flatpak.conf
|
||||
vars:
|
||||
candidate_registry: "candidate-registry{{ env_suffix }}.fedoraproject.org"
|
||||
notify:
|
||||
|
@ -153,7 +153,7 @@
|
|||
- koji_builder
|
||||
|
||||
- name: Build /etc/kojid/kojid.conf from group vars
|
||||
template: src=kojid.conf dest=/etc/kojid/kojid.conf
|
||||
ansible.builtin.template: src=kojid.conf dest=/etc/kojid/kojid.conf
|
||||
notify:
|
||||
- restart kojid
|
||||
tags:
|
||||
|
@ -167,7 +167,7 @@
|
|||
- koji_builder_osbuild
|
||||
|
||||
- name: Build /etc/koji-osbuild/builder.conf
|
||||
template: src=builder.conf{{env_suffix}} dest=/etc/koji-osbuild/builder.conf
|
||||
ansible.builtin.template: src=builder.conf{{env_suffix}} dest=/etc/koji-osbuild/builder.conf
|
||||
notify:
|
||||
- restart kojid
|
||||
tags:
|
||||
|
@ -175,12 +175,12 @@
|
|||
- koji_builder_osbuild
|
||||
|
||||
- name: Build /etc/koji/koji.conf from group vars
|
||||
template: src=koji.conf dest=/etc/koji.conf
|
||||
ansible.builtin.template: src=koji.conf dest=/etc/koji.conf
|
||||
tags:
|
||||
- koji_builder
|
||||
|
||||
- name: Config for the kojid runroot plugin (only some builders)
|
||||
template: src=runroot.conf.j2 dest=/etc/kojid/plugins/runroot.conf
|
||||
ansible.builtin.template: src=runroot.conf.j2 dest=/etc/kojid/plugins/runroot.conf
|
||||
when: "'runroot' in group_names"
|
||||
notify:
|
||||
- restart kojid
|
||||
|
@ -219,7 +219,7 @@
|
|||
|
||||
# oz.cfg upstream ram and cpu definitions are not enough
|
||||
- name: Oz.cfg
|
||||
template: src=oz.cfg.j2 dest=/etc/oz/oz.cfg
|
||||
ansible.builtin.template: src=oz.cfg.j2 dest=/etc/oz/oz.cfg
|
||||
tags:
|
||||
- koji_builder
|
||||
- koji_builder/oz.cfg
|
||||
|
@ -278,7 +278,7 @@
|
|||
- koji_builder
|
||||
|
||||
- name: Mock site-defaults.cfg
|
||||
template: src=builders/site-defaults.cfg dest=/etc/mock/site-defaults.cfg mode=0644 owner=root group=mock
|
||||
ansible.builtin.template: src=builders/site-defaults.cfg dest=/etc/mock/site-defaults.cfg mode=0644 owner=root group=mock
|
||||
when: not inventory_hostname.startswith(('bkernel'))
|
||||
tags:
|
||||
- koji_builder
|
||||
|
@ -382,13 +382,13 @@
|
|||
- koji_builder/oomd
|
||||
|
||||
- name: Install script to update osbuild api ip in the firewall
|
||||
template: src=osbuildapi-update.sh dest=/usr/local/bin/osbuildapi-update.sh mode=755
|
||||
ansible.builtin.template: src=osbuildapi-update.sh dest=/usr/local/bin/osbuildapi-update.sh mode=755
|
||||
tags:
|
||||
- koji_builder
|
||||
- koji_builder/osbuildapi
|
||||
|
||||
- name: Install cron job to run osbuild api ip update script every minute.
|
||||
template: src=osbuildapi-update.cron dest=/etc/cron.d/osbuildapi-update.cron mode=644
|
||||
ansible.builtin.template: src=osbuildapi-update.cron dest=/etc/cron.d/osbuildapi-update.cron mode=644
|
||||
tags:
|
||||
- koji_builder
|
||||
- koji_builder/osbuildapi
|
||||
|
@ -406,7 +406,7 @@
|
|||
- koji_builder/nspawn
|
||||
|
||||
- name: Create override config for systemd-nspawn containers to allow coredumps
|
||||
template: src=nspawn-override.conf dest=/etc/systemd/system/machine-.scope.d/80-infra.conf mode=0644
|
||||
ansible.builtin.template: src=nspawn-override.conf dest=/etc/systemd/system/machine-.scope.d/80-infra.conf mode=0644
|
||||
when: inventory_hostname.startswith(('buildhw-a64'))
|
||||
tags:
|
||||
- koji_builder
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
- koji_hub
|
||||
|
||||
- name: Fedmenu shim
|
||||
template: src=fedmenu-extra-footer.html dest=/usr/share/koji-web/static/extra-footer.html
|
||||
ansible.builtin.template: src=fedmenu-extra-footer.html dest=/usr/share/koji-web/static/extra-footer.html
|
||||
tags: koji_hub
|
||||
notify: reload httpd
|
||||
# XXX - we only want to do this in staging for now because it requires a patch
|
||||
|
@ -65,7 +65,7 @@
|
|||
- koji_hub
|
||||
|
||||
- name: Hub config
|
||||
template: src=hub.conf.j2 dest=/etc/koji-hub/hub.conf owner=apache group=apache mode=600
|
||||
ansible.builtin.template: src=hub.conf.j2 dest=/etc/koji-hub/hub.conf owner=apache group=apache mode=600
|
||||
tags:
|
||||
- config
|
||||
- koji_hub
|
||||
|
@ -73,7 +73,7 @@
|
|||
notify: reload httpd
|
||||
|
||||
- name: Kojiweb config
|
||||
template: src=web.conf.j2 dest=/etc/kojiweb/web.conf owner=apache group=apache mode=600
|
||||
ansible.builtin.template: src=web.conf.j2 dest=/etc/kojiweb/web.conf owner=apache group=apache mode=600
|
||||
tags:
|
||||
- config
|
||||
- koji_hub
|
||||
|
@ -110,7 +110,7 @@
|
|||
- fedora-messaging
|
||||
|
||||
- name: Install the configuration file for fedora-messaging
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src=fedora-messaging.toml
|
||||
dest=/etc/fedora-messaging/config.toml
|
||||
tags:
|
||||
|
@ -281,7 +281,7 @@
|
|||
notify: reload httpd
|
||||
|
||||
- name: Koji web hub specific config files
|
||||
template: src={{ item }}.j2 dest=/etc/httpd/conf.d/{{ item }} owner=root group=root
|
||||
ansible.builtin.template: src={{ item }}.j2 dest=/etc/httpd/conf.d/{{ item }} owner=root group=root
|
||||
with_items:
|
||||
- kojiweb.conf
|
||||
- kojihub.conf
|
||||
|
@ -313,7 +313,7 @@
|
|||
- kojira
|
||||
|
||||
- name: Kojira config
|
||||
template: src=kojira.conf.j2 dest=/etc/kojira/kojira.conf
|
||||
ansible.builtin.template: src=kojira.conf.j2 dest=/etc/kojira/kojira.conf
|
||||
tags:
|
||||
- config
|
||||
- koji_hub
|
||||
|
@ -406,12 +406,12 @@
|
|||
when: ansible_hostname.startswith('koji02')
|
||||
|
||||
- name: Install koji-gc.conf
|
||||
template: src=koji-gc.conf.j2 dest=/etc/koji-gc/koji-gc.conf
|
||||
ansible.builtin.template: src=koji-gc.conf.j2 dest=/etc/koji-gc/koji-gc.conf
|
||||
tags:
|
||||
- koji_hub
|
||||
|
||||
- name: Install prune-signed-copies-protected-tags config for prunesigs
|
||||
template: src=prune-signed-copies-protected-tags.j2 dest=/etc/prune-signed-copies-protected-tags
|
||||
ansible.builtin.template: src=prune-signed-copies-protected-tags.j2 dest=/etc/prune-signed-copies-protected-tags
|
||||
tags:
|
||||
- koji_hub
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
- kojipkgs
|
||||
|
||||
- name: Install apache config templates for local apache
|
||||
template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=644
|
||||
ansible.builtin.template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=644
|
||||
with_items:
|
||||
- kojipkgs.conf
|
||||
notify:
|
||||
|
|
|
@ -141,7 +141,7 @@
|
|||
- certbot_addhost is defined
|
||||
|
||||
- name: Install certificate bundle
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
dest=/etc/pki/tls/certs/{{site_name}}.bundle.cert
|
||||
src=combined.j2
|
||||
owner=root
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
- log_detective_backup
|
||||
|
||||
- name: Install the backup script
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: backup.sh.j2
|
||||
dest: "{{ ld_backup_script }}"
|
||||
mode: '0755'
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
- fedora-messaging
|
||||
|
||||
- name: Install fedora-messaging config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: fedora-messaging.toml.j2
|
||||
dest: /etc/fedora-messaging/config.toml
|
||||
owner: countme
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
check_implicit_admin: true
|
||||
|
||||
- name: Create .my.cnf file for future logins
|
||||
template: src=dotmy.cnf.j2 dest=/root/.my.cnf owner=root group=root mode=0700
|
||||
ansible.builtin.template: src=dotmy.cnf.j2 dest=/root/.my.cnf owner=root group=root mode=0700
|
||||
|
||||
- name: Ensure mariadb has a place to backup to
|
||||
ansible.builtin.file: dest=/backups state=directory owner=mysql
|
||||
|
@ -54,7 +54,7 @@
|
|||
- mariadb-server
|
||||
|
||||
- name: Set up some cronjobs to backup databases as configured
|
||||
template: >
|
||||
ansible.builtin.template: >
|
||||
src=cron-backup-database
|
||||
dest=/etc/cron.d/cron-backup-database-{{ item }}
|
||||
with_items:
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
- fedora-messaging
|
||||
|
||||
- name: Install fedora-messaging config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "fedora-messaging.toml"
|
||||
dest: /etc/fedora-messaging/config.toml
|
||||
owner: root
|
||||
|
@ -160,14 +160,14 @@
|
|||
# - mediawiki
|
||||
|
||||
- name: Install localsettings
|
||||
template: src=LocalSettings.php.{{wikiname}}.j2 dest=/srv/web/{{wikiname}}-wiki/LocalSettings.php owner=apache group=apache mode=600 setype=httpd_sys_content_t
|
||||
ansible.builtin.template: src=LocalSettings.php.{{wikiname}}.j2 dest=/srv/web/{{wikiname}}-wiki/LocalSettings.php owner=apache group=apache mode=600 setype=httpd_sys_content_t
|
||||
notify: reload httpd
|
||||
tags:
|
||||
- mediawiki
|
||||
- localsettings
|
||||
|
||||
- name: Httpd conf
|
||||
template: src=mediawiki-app.conf.j2 dest=/etc/httpd/conf.d/{{wikiname}}.conf
|
||||
ansible.builtin.template: src=mediawiki-app.conf.j2 dest=/etc/httpd/conf.d/{{wikiname}}.conf
|
||||
notify: reload httpd
|
||||
tags:
|
||||
- mediawiki
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
- memcached
|
||||
|
||||
- name: Setup memcached sysconfig
|
||||
template: src=memcached dest=/etc/sysconfig/memcached mode=644
|
||||
ansible.builtin.template: src=memcached dest=/etc/sysconfig/memcached mode=644
|
||||
notify:
|
||||
- restart memcached
|
||||
tags:
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
tags:
|
||||
- fedora-messaging
|
||||
|
||||
- name: "Install the toml configuration file"
|
||||
template: src="messaging.toml.j2" dest="/etc/fedora-messaging/{{ item.username }}.toml"
|
||||
- name: "install the toml configuration file"
|
||||
ansible.builtin.template: src="messaging.toml.j2" dest="/etc/fedora-messaging/{{ item.username }}.toml"
|
||||
owner=root group=root mode=644
|
||||
vars:
|
||||
- msg_username: "{{ item.username }}"
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
- fedora-messaging
|
||||
|
||||
- name: Setup mirror_pagure_ansible fedora-messaging config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: mirror_pagure_ansible.cfg
|
||||
dest: /etc/fedora-messaging/mirror_pagure_ansible.toml
|
||||
owner: mirror_pagure_ansible
|
||||
|
@ -92,7 +92,7 @@
|
|||
- mirror_pagure_ansible
|
||||
|
||||
- name: Install the consumer
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: mirror_from_pagure_bus.py
|
||||
dest: /usr/local/libexec/mirror_pagure_ansible/mirror_from_pagure_bus.py
|
||||
tags:
|
||||
|
@ -103,7 +103,7 @@
|
|||
# Install and start the service
|
||||
|
||||
- name: Install the dedicated service file for mirror_pagure_ansible
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: mirror_pagure_ansible.service
|
||||
dest: /etc/systemd/system/mirror_pagure_ansible.service
|
||||
owner: root
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
# We deploy two service files. Both listen on a different port, so that we can switch
|
||||
# them out as part of the protobuf cache deployment without having any local downtime.
|
||||
- name: Deploy service files
|
||||
template: src=mirrorlist.service.j2 dest=/etc/systemd/system/mirrorlist{{ item }}.service
|
||||
ansible.builtin.template: src=mirrorlist.service.j2 dest=/etc/systemd/system/mirrorlist{{ item }}.service
|
||||
with_items:
|
||||
- 1
|
||||
- 2
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
- mote
|
||||
|
||||
- name: Replace the mote configuration file by the one with the normal user
|
||||
template: src={{ item.file }}
|
||||
ansible.builtin.template: src={{ item.file }}
|
||||
dest="{{ item.location }}/{{ item.file }}"
|
||||
owner=apache group=apache mode=0600
|
||||
with_items:
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
|
||||
# Set up our base config.
|
||||
- name: /etc/nagios/nrpe.cfg
|
||||
template: src=nrpe.cfg.j2 dest=/etc/nagios/nrpe.cfg
|
||||
ansible.builtin.template: src=nrpe.cfg.j2 dest=/etc/nagios/nrpe.cfg
|
||||
when: not inventory_hostname.startswith('noc0')
|
||||
notify:
|
||||
- restart nrpe
|
||||
|
@ -136,7 +136,7 @@
|
|||
# So when adding or modifying them change the .j2 version in git.
|
||||
#
|
||||
- name: Install nrpe client configs
|
||||
template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
ansible.builtin.template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- check_raid.cfg
|
||||
- check_ipa.cfg
|
||||
|
@ -176,7 +176,7 @@
|
|||
# So when adding or modifying them change the .j2 version in git.
|
||||
#
|
||||
- name: Install nrpe openvpn check config
|
||||
template: src=check_openvpn_link.cfg.j2 dest=/etc/nrpe.d/check_openvpn_link.cfg owner=root group=root mode=0644
|
||||
ansible.builtin.template: src=check_openvpn_link.cfg.j2 dest=/etc/nrpe.d/check_openvpn_link.cfg owner=root group=root mode=0644
|
||||
when: vpn == true
|
||||
notify:
|
||||
- restart nrpe
|
||||
|
@ -187,7 +187,7 @@
|
|||
# So when adding or modifying them change the .j2 version in git.
|
||||
#
|
||||
- name: Install nrpe merged log check script on log01
|
||||
template: src=check_merged_file_age.cfg.j2 dest=/etc/nrpe.d/check_merged_file_age.cfg owner=root group=root mode=0644
|
||||
ansible.builtin.template: src=check_merged_file_age.cfg.j2 dest=/etc/nrpe.d/check_merged_file_age.cfg owner=root group=root mode=0644
|
||||
when: inventory_hostname.startswith('log0')
|
||||
notify:
|
||||
- restart nrpe
|
||||
|
@ -198,7 +198,7 @@
|
|||
# So when adding or modifying them change the .j2 version in git.
|
||||
#
|
||||
- name: Install nrpe check_mysql config for mariadb servers
|
||||
template: src=check_mysql.cfg.j2 dest=/etc/nrpe.d/check_mysql.cfg owner=root group=root mode=0644
|
||||
ansible.builtin.template: src=check_mysql.cfg.j2 dest=/etc/nrpe.d/check_mysql.cfg owner=root group=root mode=0644
|
||||
when: inventory_hostname.startswith('db03')
|
||||
notify:
|
||||
- restart nrpe
|
||||
|
@ -206,7 +206,7 @@
|
|||
- nagios_client
|
||||
|
||||
- name: Install nrpe checks for mailman01
|
||||
template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
ansible.builtin.template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- check_mailman_api.cfg
|
||||
when: inventory_hostname.startswith('mailman01')
|
||||
|
@ -216,7 +216,7 @@
|
|||
- nagios_client
|
||||
|
||||
- name: Install nrpe checks for proxies
|
||||
template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
ansible.builtin.template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- check_happroxy_conns.cfg
|
||||
- check_varnish_proc.cfg
|
||||
|
@ -227,7 +227,7 @@
|
|||
- nagios_client
|
||||
|
||||
- name: Install nrpe checks for sigul_bridge
|
||||
template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
ansible.builtin.template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- check_sigul_bridge_proc.cfg
|
||||
when: inventory_hostname.startswith('sign-bridge')
|
||||
|
@ -237,7 +237,7 @@
|
|||
- nagios_client
|
||||
|
||||
- name: Install nrpe checks for sundries/websites
|
||||
template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
ansible.builtin.template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- check_websites_buildtime.cfg
|
||||
when: inventory_hostname.startswith('sundries')
|
||||
|
@ -252,7 +252,7 @@
|
|||
- nagios_client
|
||||
block:
|
||||
- name: Install the nrpe template
|
||||
template: src=check_crl_next_update.cfg.j2 dest=/etc/nrpe.d/check_crl_next_update.cfg owner=root group=root mode=0644
|
||||
ansible.builtin.template: src=check_crl_next_update.cfg.j2 dest=/etc/nrpe.d/check_crl_next_update.cfg owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart nrpe
|
||||
|
||||
|
@ -263,7 +263,7 @@
|
|||
acl: default=no etype=user entity=nrpe permissions="r" name=/etc/openvpn/server/crl.pem state=present
|
||||
|
||||
- name: Install nrpe config for the RabbitMQ checks
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "rabbitmq_args.ini.j2"
|
||||
dest: "/etc/nrpe.d/rabbitmq_args.ini"
|
||||
owner: root
|
||||
|
@ -274,7 +274,7 @@
|
|||
- nagios_client
|
||||
|
||||
- name: Install nrpe checks for the RabbitMQ cluster
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/etc/nrpe.d/{{ item }}"
|
||||
owner: root
|
||||
|
@ -301,7 +301,7 @@
|
|||
- nagios_client
|
||||
|
||||
- name: Install nrpe check for rsyslogd
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- check_rsyslogd_proc.cfg
|
||||
|
@ -311,7 +311,7 @@
|
|||
- nagios_client
|
||||
|
||||
- name: Install nrpe check for systemd units
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- check_systemd_units.cfg
|
||||
|
|
|
@ -326,7 +326,7 @@
|
|||
# This one may go to being just a regular config file if we can make remote monitoring work
|
||||
## Copy over system configs
|
||||
- name: Copy specialized nrpe.cfg for nagios server
|
||||
template: src=nrpe/nrpe.cfg.j2 dest=/etc/nagios/nrpe.cfg
|
||||
ansible.builtin.template: src=nrpe/nrpe.cfg.j2 dest=/etc/nagios/nrpe.cfg
|
||||
notify:
|
||||
- restart nrpe
|
||||
tags:
|
||||
|
@ -340,14 +340,14 @@
|
|||
- nagios_server
|
||||
|
||||
- name: Template out the nagios httpd conf
|
||||
template: src=httpd/{{item}}.j2 dest=/etc/httpd/conf.d/{{item}}
|
||||
ansible.builtin.template: src=httpd/{{item}}.j2 dest=/etc/httpd/conf.d/{{item}}
|
||||
with_items:
|
||||
- nagios.conf
|
||||
tags:
|
||||
- nagios_server
|
||||
|
||||
- name: Template out the nagios httpd conf
|
||||
template: src=httpd/{{item}}.j2 dest=/etc/httpd/conf.d/{{item}}
|
||||
ansible.builtin.template: src=httpd/{{item}}.j2 dest=/etc/httpd/conf.d/{{item}}
|
||||
with_items:
|
||||
- 0_nagios-external.conf
|
||||
tags:
|
||||
|
@ -356,21 +356,21 @@
|
|||
when: env == "production" and nagios_location == "external"
|
||||
|
||||
- name: Template out the cgi.cfg
|
||||
template: src=nagios/configs/cgi.cfg.j2 dest=/etc/nagios/cgi.cfg mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/configs/cgi.cfg.j2 dest=/etc/nagios/cgi.cfg mode=0644 owner=root group=root
|
||||
tags:
|
||||
- nagios_server
|
||||
- nagios_config
|
||||
notify: restart nagios
|
||||
|
||||
- name: Override config.inc.php for the given environment
|
||||
template: src=nagios/config.inc.php.j2 dest=/usr/share/nagios/html/config.inc.php mode=0640 owner=root group=apache
|
||||
ansible.builtin.template: src=nagios/config.inc.php.j2 dest=/usr/share/nagios/html/config.inc.php mode=0640 owner=root group=apache
|
||||
tags:
|
||||
- nagios_server
|
||||
- nagios_config
|
||||
notify: restart nagios
|
||||
|
||||
- name: Template over plugins
|
||||
template: src=nagios/plugins/{{item}}.j2 dest=/usr/lib64/nagios/plugins/{{item}} mode=0755 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/plugins/{{item}}.j2 dest=/usr/lib64/nagios/plugins/{{item}} mode=0755 owner=root group=root
|
||||
with_items:
|
||||
- check_koji
|
||||
tags:
|
||||
|
@ -378,7 +378,7 @@
|
|||
|
||||
|
||||
- name: Template over commands
|
||||
template: src=nagios/commands/{{item}}.j2 dest=/etc/nagios/commands/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/commands/{{item}}.j2 dest=/etc/nagios/commands/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- postgres.cfg
|
||||
tags:
|
||||
|
@ -387,7 +387,7 @@
|
|||
notify: restart nagios
|
||||
|
||||
- name: Template over services (internal)
|
||||
template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- ipa.cfg
|
||||
- mirrorlist-proxies.cfg
|
||||
|
@ -398,7 +398,7 @@
|
|||
notify: restart nagios
|
||||
|
||||
- name: Template over services (both)
|
||||
template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- websites.cfg
|
||||
when: env == "production"
|
||||
|
@ -409,7 +409,7 @@
|
|||
notify: restart nagios
|
||||
|
||||
- name: Build out nagios host templates (production)
|
||||
template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- dedicatedsolutions-hosts.cfg
|
||||
- host1plus-hosts.cfg
|
||||
|
@ -431,7 +431,7 @@
|
|||
|
||||
## These are only available to the internal server
|
||||
- name: Build out nagios host templates (production)
|
||||
template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- iad2-hosts.cfg
|
||||
- iad2-mgmt-hosts.cfg
|
||||
|
@ -444,7 +444,7 @@
|
|||
notify: restart nagios
|
||||
|
||||
- name: Copy Matrix-Notify script
|
||||
template: src=nagios/scripts/matrix-notify.sh.j2 dest=/usr/local/bin/matrix-notify.sh mode=0750 owner=root group=nagios
|
||||
ansible.builtin.template: src=nagios/scripts/matrix-notify.sh.j2 dest=/usr/local/bin/matrix-notify.sh mode=0750 owner=root group=nagios
|
||||
tags:
|
||||
- nagios_config
|
||||
- nagios_server
|
||||
|
@ -452,7 +452,7 @@
|
|||
|
||||
## These are only available to the internal server
|
||||
- name: Build out nagios host templates (production)
|
||||
template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- iad2-hosts.cfg
|
||||
when: env == "production" and nagios_location == 'iad2_internal'
|
||||
|
@ -463,7 +463,7 @@
|
|||
notify: restart nagios
|
||||
|
||||
- name: Build out nagios host templates (production)
|
||||
template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- iad2-external.cfg
|
||||
- ibiblio-hosts-ipv6.cfg
|
||||
|
@ -474,7 +474,7 @@
|
|||
notify: restart nagios
|
||||
|
||||
- name: Build out nagios hostgroup templates (iad2)
|
||||
template: src=nagios/hostgroups/{{item}}.j2 dest=/etc/nagios/hostgroups/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/hostgroups/{{item}}.j2 dest=/etc/nagios/hostgroups/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- all.cfg
|
||||
- vpnclients.cfg
|
||||
|
@ -490,7 +490,7 @@
|
|||
notify: restart nagios
|
||||
|
||||
- name: Build out nagios hostgroup templates (external)
|
||||
template: src=nagios/hostgroups/{{item}}.j2 dest=/etc/nagios/hostgroups/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/hostgroups/{{item}}.j2 dest=/etc/nagios/hostgroups/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- all-external.cfg
|
||||
when: nagios_location == "external"
|
||||
|
@ -501,7 +501,7 @@
|
|||
notify: restart nagios
|
||||
|
||||
- name: Build out nagios services templates
|
||||
template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
|
||||
ansible.builtin.template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- iad2-mgmt.cfg
|
||||
when: nagios_location == 'iad2_internal'
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue