opsbro icon indicating copy to clipboard operation
opsbro copied to clipboard

COMPLIANCE: rajout de lignes en duplicate foreach

Open naparuba opened this issue 6 years ago • 2 comments
trafficstars

# Rajout de lignes avec un duplicate for each
- name: Add a few lines in xwiki.cfg file
  lineinfile: 
    dest: "{{ tomcat8_path }}/webapps/{{ xwiki_path }}/WEB-INF/xwiki.cfg"
    line: "{{ item }}"
  with_items:
    - "xwiki.stats=1"
    - "xwiki.store.attachment.hint = file"
    - "xwiki.store.attachment.versioning.hint = file"
    - "xwiki.store.attachment.recyclebin.hint = file"
    - "xwiki.data.dir = {{ tomcat8_path }}/work"

naparuba avatar Jan 28 '19 10:01 naparuba

Doc complète de la modification de fichier:

https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html

naparuba avatar Oct 21 '19 06:10 naparuba

Liste des modules ansible "par défaut": https://docs.ansible.com/ansible/latest/modules/core_maintained.html#core-supported

naparuba avatar Oct 21 '19 06:10 naparuba