Ansible-Puppet-Chef

[ansible] lineinfile

'김용환' 2018. 7. 5. 11:49




ansible에 lineinfile(https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html)이라는 모듈이 있다.



- name: replace config

  become: true

  lineinfile:

    path: /usr/local/zookeeper/conf/zoo.conf

    regexp: '^#maxClientCnxns'

    line: 'maxClientCnxns'






저작자표시 비영리 동일조건 (새창열림)