mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-10 14:24:25 +00:00
fix ansible-lint: risky-octal & no-same-owner (#171)
Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
This commit is contained in:
parent
c0eb6bb516
commit
76497d34bd
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue