linting fixes

This commit is contained in:
Bastian de Byl
2022-05-02 17:26:53 -04:00
parent 95690c0eb1
commit f7141f53d5
8 changed files with 19 additions and 11 deletions

View File

@@ -62,7 +62,7 @@
mode: 0644
loop:
- "{{ ci_server_name }}.http.conf"
#- "{{ pi_server_name }}.conf"
# - "{{ pi_server_name }}.conf"
- "{{ home_server_name }}.conf"
- "{{ assistant_server_name }}.conf"
- "{{ video_server_name }}.conf"
@@ -83,7 +83,7 @@
state: link
loop:
- "{{ ci_server_name }}.http.conf"
#- "{{ pi_server_name }}.conf"
# - "{{ pi_server_name }}.conf"
- "{{ parts_server_name }}.conf"
- "{{ home_server_name }}.conf"
- "{{ assistant_server_name }}.conf"

View File

@@ -15,7 +15,8 @@
- import_tasks: configuration-nginx-https.yml
- import_tasks: configuration-nginx-modsec.yml
- meta: flush_handlers
- name: flush handlers
ansible.builtin.meta: flush_handlers
tags:
- http
- modsec

View File

@@ -12,7 +12,8 @@
- "{{ drone_path }}/data"
tags: drone
- meta: flush_handlers
- name: flush handlers
ansible.builtin.meta: flush_handlers
tags: drone
- name: create drone-ci server container

View File

@@ -34,11 +34,13 @@
- name: unshare chown the elastic volume
become: true
become_user: "{{ podman_user }}"
changed_when: false
ansible.builtin.command: |
podman unshare chown -R 1000:1000 {{ graylog_path }}/elastic
tags: graylog
- meta: flush_handlers
- name: flush handlers
ansible.builtin.meta: flush_handlers
tags: graylog
- name: create graylog mongodb container
@@ -103,7 +105,6 @@
net.ipv6.conf.default.disable_ipv6: 1
network:
- shared
- host
volumes:
- "{{ graylog_path }}/conf:/usr/share/graylog/data/config"
- "{{ graylog_path }}/bin:/usr/share/graylog/bin"

View File

@@ -27,7 +27,8 @@
- automations.yaml
tags: hass
- meta: flush_handlers
- name: flush handlers
ansible.builtin.meta: flush_handlers
tags: hass
- name: create home-assistant server container

View File

@@ -12,7 +12,8 @@
- "{{ partkeepr_path }}/mysql"
tags: partkeepr
- meta: flush_handlers
- name: flush handlers
ansible.builtin.meta: flush_handlers
tags: partkeepr
- name: create partkeepr-db container

View File

@@ -76,7 +76,8 @@
- "{{ podman_volumes }}"
tags: podman
- meta: flush_handlers
- name: flush handlers
ansible.builtin.meta: flush_handlers
tags: podman
- name: create podman shared network
@@ -98,7 +99,8 @@
- name: fetch subuid of {{ podman_user }}
become: true
changed_when: false
ansible.builtin.shell: |
cat /etc/subuid | awk -F':' '/{{ podman_user }}/{ print $2 }' | head -n 1
set -o pipefail && cat /etc/subuid | awk -F':' '/{{ podman_user }}/{ print $2 }' | head -n 1
register: podman_subuid
tags: always

View File

@@ -2,8 +2,9 @@
- name: create systemd startup job for {{ container_name }}
become: true
become_user: "{{ podman_user }}"
changed_when: false
ansible.builtin.shell: |
podman generate systemd --name {{ container_name }} > {{ podman_home}}/.config/systemd/user/{{ container_name }}.service
podman generate systemd --name {{ container_name }} > {{ podman_home }}/.config/systemd/user/{{ container_name }}.service
tags: systemd
- name: enable systemd startup job for {{ container_name }}