Skip to content

Commit

Permalink
Fix ansible-lint stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Dec 13, 2024
1 parent 6a0d5ec commit cf8e3c7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
19 changes: 13 additions & 6 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,25 @@
vars_files: ['config.yml']

handlers:
- name: restart chrony
- name: Restart chrony
ansible.builtin.service:
name: chrony
state: restarted

- name: restart gpsd
- name: Restart gpsd
ansible.builtin.service:
name: gpsd
state: restarted

tasks:
- ansible.builtin.include_tasks: tasks/pi-config.yml
- ansible.builtin.include_tasks: tasks/gps.yml
- ansible.builtin.include_tasks: tasks/chrony.yml
- ansible.builtin.include_tasks: tasks/ptp.yml
- name: Configure Raspberry Pi settings.
ansible.builtin.include_tasks: tasks/pi-config.yml

- name: Configure GPS.
ansible.builtin.include_tasks: tasks/gps.yml

- name: Configure chrony.
ansible.builtin.include_tasks: tasks/chrony.yml

- name: Configure PTP.
ansible.builtin.include_tasks: tasks/ptp.yml
2 changes: 1 addition & 1 deletion tasks/chrony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
src: "templates/{{ item }}.j2"
dest: "/etc/chrony/conf.d/{{ item }}"
mode: 0644
notify: restart chrony
notify: Restart chrony
with_items:
- allow.conf
- refclock.conf
Expand Down
2 changes: 1 addition & 1 deletion tasks/gps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: present
notify: restart gpsd
notify: Restart gpsd
with_items:
- regexp: '^DEVICES='
line: 'DEVICES="{{ gpsd_devices }}"'
Expand Down

0 comments on commit cf8e3c7

Please sign in to comment.