Use lineinfile instead of overwriting with copy

This commit is contained in:
Tobias Stein 2022-05-02 07:51:48 +02:00
parent cad2ceaeba
commit a97f593e30
1 changed files with 4 additions and 3 deletions

View File

@ -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