opsbro
opsbro copied to clipboard
COMPLIANCE: rajout de lignes en duplicate foreach
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"
Doc complète de la modification de fichier:
https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html
Liste des modules ansible "par défaut": https://docs.ansible.com/ansible/latest/modules/core_maintained.html#core-supported