fix ansible-lint: risky-octal & no-same-owner (#171)

Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
This commit is contained in:
Thomas Venieris 2023-07-29 10:31:08 +02:00 committed by GitHub
parent c0eb6bb516
commit 76497d34bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,7 @@
dest: /etc/systemd/system/mysqld_exporter.service dest: /etc/systemd/system/mysqld_exporter.service
owner: root owner: root
group: root group: root
mode: 0644 mode: '0644'
notify: restart mysqld_exporter notify: restart mysqld_exporter
- name: Create mysqld_exporter config directory - name: Create mysqld_exporter config directory

View file

@ -43,6 +43,8 @@
src: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}.tar.gz" src: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp" dest: "/tmp"
creates: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}/mysqld_exporter" creates: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}/mysqld_exporter"
extra_opts:
- --no-same-owner
delegate_to: localhost delegate_to: localhost
check_mode: false check_mode: false
@ -50,7 +52,7 @@
ansible.builtin.copy: ansible.builtin.copy:
src: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}/mysqld_exporter" src: "/tmp/mysqld_exporter-{{ mysqld_exporter_version }}.linux-{{ go_arch }}/mysqld_exporter"
dest: "{{ mysqld_exporter_binary_install_dir }}/mysqld_exporter" dest: "{{ mysqld_exporter_binary_install_dir }}/mysqld_exporter"
mode: 0755 mode: '0755'
owner: root owner: root
group: root group: root
notify: restart mysqld_exporter notify: restart mysqld_exporter
@ -60,7 +62,7 @@
ansible.builtin.copy: ansible.builtin.copy:
src: "{{ mysqld_exporter_binary_local_dir }}/mysqld_exporter" src: "{{ mysqld_exporter_binary_local_dir }}/mysqld_exporter"
dest: "{{ mysqld_exporter_binary_install_dir }}/mysqld_exporter" dest: "{{ mysqld_exporter_binary_install_dir }}/mysqld_exporter"
mode: 0755 mode: '0755'
owner: root owner: root
group: root group: root
when: when: