Skip to content

Commit

Permalink
Fix implicit octal values in main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HVSharma12 committed Oct 26, 2023
1 parent 5b06e00 commit d29148b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
src: chrony.conf.j2
dest: "{{ timesync_chrony_conf_path }}"
backup: true
mode: 0644
mode: "0644"
# wokeignore:rule=master
notify: Restart {{ 'chronyd' if timesync_mode == 1 else 'timemaster' }}
when:
Expand All @@ -115,7 +115,7 @@
src: chronyd.sysconfig.j2
dest: "{{ timesync_chrony_sysconfig_path }}"
backup: true
mode: 0644
mode: "0644"
notify: Restart chronyd
when:
- timesync_mode == 1
Expand All @@ -127,7 +127,7 @@
src: ntp.conf.j2
dest: /etc/ntp.conf
backup: true
mode: 0644
mode: "0644"
# wokeignore:rule=master
notify: Restart {{ 'ntpd' if timesync_mode == 1 else 'timemaster' }}
when:
Expand All @@ -140,7 +140,7 @@
src: ntpd.sysconfig.j2
dest: "{{ timesync_ntp_sysconfig_path }}"
backup: true
mode: 0644
mode: "0644"
notify: Restart ntpd
when:
- timesync_mode == 1
Expand All @@ -152,7 +152,7 @@
src: ptp4l.conf.j2
dest: /etc/ptp4l.conf
backup: true
mode: 0644
mode: "0644"
notify: Restart ptp4l
when:
- timesync_mode == 2
Expand All @@ -163,7 +163,7 @@
src: ptp4l.sysconfig.j2
dest: "{{ timesync_ptp4l_sysconfig_path }}"
backup: true
mode: 0644
mode: "0644"
notify: Restart ptp4l
when:
- timesync_mode == 2
Expand All @@ -175,7 +175,7 @@
src: phc2sys.sysconfig.j2
dest: /etc/sysconfig/phc2sys
backup: true
mode: 0644
mode: "0644"
notify: Restart phc2sys
when:
- timesync_mode == 2
Expand All @@ -191,7 +191,7 @@
# wokeignore:rule=master
dest: "{{ timesync_timemaster_config_path }}"
backup: true
mode: 0644
mode: "0644"
# wokeignore:rule=master
notify: Restart timemaster
when:
Expand All @@ -203,7 +203,7 @@
dest: /etc/sysconfig/network
create: true
backup: true
mode: 0644
mode: "0644"
regexp: '^PEERNTP='
line: 'PEERNTP=no'
# yamllint disable-line rule:line-length
Expand Down

0 comments on commit d29148b

Please sign in to comment.