diff --git a/main.yml b/main.yml index d33f985..39a29b9 100644 --- a/main.yml +++ b/main.yml @@ -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 diff --git a/tasks/chrony.yml b/tasks/chrony.yml index e21f5f5..14be4bb 100644 --- a/tasks/chrony.yml +++ b/tasks/chrony.yml @@ -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 diff --git a/tasks/gps.yml b/tasks/gps.yml index d996e6e..50cce55 100644 --- a/tasks/gps.yml +++ b/tasks/gps.yml @@ -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 }}"'