Make the existing playbooks pass the new checks
Strip trailing whitespace and blank lines, name the getent tasks, and fix Jinja spacing.
This commit is contained in:
1 parent
0df4054cc2
commit
4ddeba5402
21 files changed
+21
-25
No files matched your search
@@ -1,4 +1,3 @@
|
||||
|
||||
caddy_container: caddy
|
||||
caddyfile_path: /var/lib/caddy/conf/Caddyfile
|
||||
snippet_block: |
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
docker_container:
|
||||
name: "{{ caddy_container }}"
|
||||
state: started
|
||||
restart: true
|
||||
restart: true
|
||||
@@ -19,4 +19,4 @@
|
||||
block: "{{ snippet_block }}"
|
||||
create: yes
|
||||
when: not snippet_present
|
||||
notify: Restart caddy container
|
||||
notify: Restart caddy container
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
# Tasks for Grafana role
|
||||
- getent:
|
||||
- name: Look up the Grafana user
|
||||
getent:
|
||||
database: passwd
|
||||
key: "{{ grafana_user }}"
|
||||
split: ":"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
# Tasks for InfluxDB role
|
||||
- getent:
|
||||
- name: Look up the InfluxDB user
|
||||
getent:
|
||||
database: passwd
|
||||
key: "{{ influx_user }}"
|
||||
split: ":"
|
||||
@@ -49,4 +50,3 @@
|
||||
volumes:
|
||||
- "{{ influx_directory }}/data:/var/lib/influxdb2"
|
||||
- "{{ influx_directory }}/config:/etc/influxdb2"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
# Tasks for Mosquitto role
|
||||
- getent:
|
||||
- name: Look up the Mosquitto user
|
||||
getent:
|
||||
database: passwd
|
||||
key: "{{ mosquitto_user }}"
|
||||
split: ":"
|
||||
@@ -79,4 +80,3 @@
|
||||
|
||||
- name: Encrypt the docker file
|
||||
command: docker exec -i mosquitto mosquitto_passwd -U /mosquitto/config/passwd
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
state: present
|
||||
connected:
|
||||
- caddy
|
||||
appends: yes
|
||||
appends: yes
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
- getent:
|
||||
- name: Look up the Node-RED user
|
||||
getent:
|
||||
database: passwd
|
||||
key: "{{ nodered_user }}"
|
||||
split: ":"
|
||||
|
||||
@@ -24,4 +24,4 @@ grafana_user: "{{ user }}"
|
||||
|
||||
host: iot.tanshu.com
|
||||
|
||||
docker_network: iot_net
|
||||
docker_network: iot_net
|
||||
Reference in new issue
Block a user