Use lineinfile instead of overwriting with copy
This commit is contained in:
parent
cad2ceaeba
commit
a97f593e30
|
@ -7,9 +7,10 @@
|
|||
state: present
|
||||
|
||||
- name: "Configure rdate for inetd"
|
||||
ansible.builtin.copy:
|
||||
content: |
|
||||
time stream tcp nowait root internal
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/inetd.conf"
|
||||
create: yes
|
||||
line: 'time stream tcp nowait root internal'
|
||||
dest: "/etc/inetd.conf"
|
||||
owner: root
|
||||
group: root
|
||||
|
|
Loading…
Reference in New Issue