1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_avahi_daemon.git synced 2024-08-16 15:09:48 +02:00

Update linting

This commit is contained in:
L3D 2023-10-28 18:12:24 +02:00
parent 907687d138
commit 020c785bbb
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
7 changed files with 18 additions and 15 deletions

View file

@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'Checkout git repo' - name: Checkout git repo
uses: actions/checkout@v4.1.1 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0

View file

@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'Checkout git repo' - name: Checkout git repo
uses: actions/checkout@v4.1.1 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0

View file

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'Checkout git repo' - name: Checkout git repo
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: true submodules: true

View file

@ -7,7 +7,7 @@
mode: '0755' mode: '0755'
state: directory state: directory
path: "{{ item }}" path: "{{ item }}"
with_items: loop:
- '/etc/avahi' - '/etc/avahi'
- '/etc/avahi/services' - '/etc/avahi/services'
notify: notify:
@ -21,6 +21,6 @@
owner: root owner: root
group: root group: root
mode: 'u=rw,g=r,o=r' mode: 'u=rw,g=r,o=r'
loop: "{{ avahi_daemon__services }}"
notify: notify:
- Run systemctl restart avahi-daemon.service - Run systemctl restart avahi-daemon.service
with_items: "{{ avahi_daemon__services }}"

View file

@ -1,16 +1,20 @@
--- ---
- name: Run optional versionscheck - name: Run optional versionscheck
ansible.builtin.include_tasks: versioncheck.yml ansible.builtin.include_tasks:
file: versioncheck.yml
when: submodules_versioncheck | bool when: submodules_versioncheck | bool
- name: Gather os specific variables - name: Gather os specific variables
ansible.builtin.include_vars: "{{ item }}" ansible.builtin.include_vars:
file: "{{ item }}"
with_first_found: with_first_found:
- "vars/{{ ansible_os_family }}.yml" - "vars/{{ ansible_os_family }}.yml"
- "vars/os_fallback.yml" - "vars/os_fallback.yml"
- name: Install avahi requirements - name: Install avahi requirements
ansible.builtin.include_tasks: install.yml ansible.builtin.include_tasks:
file: install.yml
- name: Optionally announce avahi services - name: Optionally announce avahi services
ansible.builtin.include_tasks: avahi_services.yml ansible.builtin.include_tasks:
file: avahi_services.yml

View file

@ -16,15 +16,14 @@
src: "/etc/.ansible-version/{{ playbook_version_path }}" src: "/etc/.ansible-version/{{ playbook_version_path }}"
register: playbook_version register: playbook_version
when: submodules_versioncheck | bool when: submodules_versioncheck | bool
ignore_errors: true
failed_when: false failed_when: false
- name: Print remote role version - name: Print remote role version # noqa: H500
ansible.builtin.debug: ansible.builtin.debug:
msg: "Remote role version: {{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}" msg: "Remote role version: {{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}"
when: submodules_versioncheck | bool when: submodules_versioncheck | bool
- name: Print locale role version - name: Print locale role version # noqa: H500
ansible.builtin.debug: ansible.builtin.debug:
msg: "Local role version: '{{ playbook_version_number | string }}'." msg: "Local role version: '{{ playbook_version_number | string }}'."
when: submodules_versioncheck | bool when: submodules_versioncheck | bool

View file

@ -1,4 +1,4 @@
--- ---
# versionscheck # versionscheck
playbook_version_number: 9 playbook_version_number: 10
playbook_version_path: 'do1jlr.avahi_daemon.version' playbook_version_path: 'do1jlr.avahi_daemon.version'