bodhi-backend91: quote all mode paramaters

mode parameters need to be quoted so ansible can see them as strings and
convert them to the right thing in the end. Without that, they could be
ill defined or sometimes wrong.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-12-13 12:03:37 -08:00
parent 149abf786b
commit bb67432921

View file

@ -95,7 +95,7 @@
# cron job that syncs packages to koji # cron job that syncs packages to koji
# #
- name: put owner-sync-pagure in place - name: put owner-sync-pagure in place
template: src=owner-sync-pagure.j2 dest=/usr/local/bin/owner-sync-pagure mode=0755 template: src=owner-sync-pagure.j2 dest=/usr/local/bin/owner-sync-pagure mode="0755"
tags: tags:
- config - config
- bodhi - bodhi
@ -131,7 +131,7 @@
copy: copy:
src: koji_sync_listener.py src: koji_sync_listener.py
dest: /usr/lib/python{{ py3ver }}/site-packages/koji_sync_listener.py dest: /usr/lib/python{{ py3ver }}/site-packages/koji_sync_listener.py
mode: 0644 mode: "0644"
when: env == "production" when: env == "production"
tags: tags:
- bodhi - bodhi
@ -160,7 +160,7 @@
# #
- name: put new-updates-sync in place - name: put new-updates-sync in place
copy: src=new-updates-sync dest=/usr/local/bin/new-updates-sync mode=0755 copy: src=new-updates-sync dest=/usr/local/bin/new-updates-sync mode="0755"
when: env == "production" when: env == "production"
tags: tags:
- config - config
@ -168,7 +168,7 @@
- cron - cron
- name: put bodhi-automated-pushes.py in place - name: put bodhi-automated-pushes.py in place
copy: src=bodhi-automated-pushes.py dest=/usr/local/bin/bodhi-automated-pushes.py mode=0755 copy: src=bodhi-automated-pushes.py dest=/usr/local/bin/bodhi-automated-pushes.py mode="0755"
when: env == "production" when: env == "production"
tags: tags:
- config - config
@ -177,14 +177,14 @@
# These next two are used by quick-fedora-mirror # These next two are used by quick-fedora-mirror
- name: put update-fullfiletimelist in place - name: put update-fullfiletimelist in place
copy: src="{{ files }}/scripts/update-fullfiletimelist" dest=/usr/local/bin/update-fullfiletimelist mode=0755 copy: src="{{ files }}/scripts/update-fullfiletimelist" dest=/usr/local/bin/update-fullfiletimelist mode="0755"
when: env == "production" when: env == "production"
tags: tags:
- config - config
- bodhi - bodhi
- cron - cron
- name: add create-filelist script from quick-fedora-mirror - name: add create-filelist script from quick-fedora-mirror
copy: src="{{ files }}/scripts/create-filelist" dest=/usr/local/bin/create-filelist mode=0755 copy: src="{{ files }}/scripts/create-filelist" dest=/usr/local/bin/create-filelist mode="0755"
when: env == "production" when: env == "production"
tags: tags:
- config - config
@ -281,7 +281,7 @@
dest="/etc/bodhi/logging.yaml" dest="/etc/bodhi/logging.yaml"
owner=apache owner=apache
group=apache group=apache
mode=0600 mode="0600"
tags: tags:
- config - config
- bodhi - bodhi
@ -292,7 +292,7 @@
dest: /etc/bodhi/production.ini dest: /etc/bodhi/production.ini
owner: apache owner: apache
group: apache group: apache
mode: 0600 mode: "0600"
tags: tags:
- config - config
- bodhi - bodhi
@ -303,7 +303,7 @@
dest: /etc/bodhi/celeryconfig.py dest: /etc/bodhi/celeryconfig.py
owner: apache owner: apache
group: apache group: apache
mode: 0600 mode: "0600"
tags: tags:
- config - config
- bodhi - bodhi
@ -314,7 +314,7 @@
dest: /etc/fedora-messaging/config.toml dest: /etc/fedora-messaging/config.toml
owner: apache owner: apache
group: apache group: apache
mode: 0600 mode: "0600"
tags: tags:
- config - config
- bodhi - bodhi
@ -322,7 +322,7 @@
- name: Create /etc/pki/fedora-messaging - name: Create /etc/pki/fedora-messaging
file: file:
dest: /etc/pki/fedora-messaging dest: /etc/pki/fedora-messaging
mode: 0775 mode: "0775"
owner: root owner: root
group: root group: root
state: directory state: directory
@ -333,7 +333,7 @@
copy: copy:
src: "{{ private }}/files/rabbitmq/{{env}}/pki/ca.crt" src: "{{ private }}/files/rabbitmq/{{env}}/pki/ca.crt"
dest: /etc/pki/fedora-messaging/cacert.pem dest: /etc/pki/fedora-messaging/cacert.pem
mode: 0644 mode: "0644"
owner: apache owner: apache
group: apache group: apache
tags: tags:
@ -343,7 +343,7 @@
copy: copy:
src: "{{ private }}/files/rabbitmq/{{env}}/pki/issued/bodhi{{env_suffix}}.crt" src: "{{ private }}/files/rabbitmq/{{env}}/pki/issued/bodhi{{env_suffix}}.crt"
dest: /etc/pki/fedora-messaging/bodhi-cert.pem dest: /etc/pki/fedora-messaging/bodhi-cert.pem
mode: 0644 mode: "0644"
owner: apache owner: apache
group: apache group: apache
tags: tags:
@ -353,7 +353,7 @@
copy: copy:
src: "{{ private }}/files/rabbitmq/{{env}}/pki/private/bodhi{{env_suffix}}.key" src: "{{ private }}/files/rabbitmq/{{env}}/pki/private/bodhi{{env_suffix}}.key"
dest: /etc/pki/fedora-messaging/bodhi-key.pem dest: /etc/pki/fedora-messaging/bodhi-key.pem
mode: 0600 mode: "0600"
owner: apache owner: apache
group: apache group: apache
tags: tags:
@ -382,7 +382,7 @@
path: /etc/systemd/system/fm-consumer@.service.d path: /etc/systemd/system/fm-consumer@.service.d
owner: root owner: root
group: root group: root
mode: 0755 mode: "0755"
tags: tags:
- bodhi - bodhi
- config - config
@ -393,7 +393,7 @@
dest: /etc/systemd/system/fm-consumer@.service.d/local.conf dest: /etc/systemd/system/fm-consumer@.service.d/local.conf
owner: root owner: root
group: root group: root
mode: 0644 mode: "0644"
notify: notify:
- reload systemd - reload systemd
tags: tags:
@ -406,7 +406,7 @@
dest: /etc/systemd/system/bodhi-celery.service dest: /etc/systemd/system/bodhi-celery.service
owner: root owner: root
group: root group: root
mode: 0644 mode: "0644"
notify: notify:
- reload systemd - reload systemd
tags: tags: