lineinfile1.yml 238 B

1234567891011
  1. ---
  2. - name: escribe una linea en un fichero
  3. hosts: servera.lab.example.com
  4. tasks:
  5. - name: line in file
  6. lineinfile:
  7. path: /tmp/text.txt
  8. line: "Esto es otra prueba"
  9. state: present
  10. create: yes