Migrate shell to FQCN.
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
# https://docs.influxdata.com/influxdb/v1.8/introduction/get-started/
|
||||
|
||||
- name: Server | InfluxDB1 | Check
|
||||
shell: which influxd
|
||||
ansible.builtin.shell: which influxd
|
||||
register: influxdb_check
|
||||
ignore_errors: true
|
||||
|
||||
- name: Server | InfluxDB1 | Install
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
args:
|
||||
chdir: "{{ ansible_env.HOME }}/Downloads/"
|
||||
loop:
|
||||
@@ -20,7 +20,7 @@
|
||||
when: influxdb_check.failed
|
||||
|
||||
- name: Server | InfluxDB1 | Config
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- influx -execute "create database main"
|
||||
- influx -execute "show databases"
|
||||
|
||||
Reference in New Issue
Block a user